Accepting request 260389 from home:Ledest:misc

fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=4
This commit is contained in:
Denisart Benjamin 2014-11-14 15:40:19 +00:00 committed by Git OBS Bridge
parent 1cd7a272f9
commit a59be551b3
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 08 20:20:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in pre script
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 15 12:18:02 UTC 2013 - speilicke@suse.com Fri Nov 15 12:18:02 UTC 2013 - speilicke@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-sqlparse # spec file for package python-sqlparse
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -59,8 +59,7 @@ py.test tests
%pre %pre
# Since /usr/bin/sqlformat became ghosted to be used with update-alternatives, we have # Since /usr/bin/sqlformat became ghosted to be used with update-alternatives, we have
# to get rid of the old binary resulting from the non-update-alternativies-ified package: # to get rid of the old binary resulting from the non-update-alternativies-ified package:
[[ ! -L %{_bindir}/sqlformat ]] && rm -f %{_bindir}/sqlformat [ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat
exit 0
%post %post
update-alternatives --install %{_bindir}/sqlformat sqlformat %{_bindir}/sqlformat-%{py_ver} 20 update-alternatives --install %{_bindir}/sqlformat sqlformat %{_bindir}/sqlformat-%{py_ver} 20