diff --git a/python-sqlparse.changes b/python-sqlparse.changes index 8b1a93d..2686b10 100644 --- a/python-sqlparse.changes +++ b/python-sqlparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 20:20:00 UTC 2014 - Led + +- fix bashism in pre script + ------------------------------------------------------------------- Fri Nov 15 12:18:02 UTC 2013 - speilicke@suse.com diff --git a/python-sqlparse.spec b/python-sqlparse.spec index 252945e..716ad00 100644 --- a/python-sqlparse.spec +++ b/python-sqlparse.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -59,8 +59,7 @@ py.test tests %pre # 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: -[[ ! -L %{_bindir}/sqlformat ]] && rm -f %{_bindir}/sqlformat -exit 0 +[ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat %post update-alternatives --install %{_bindir}/sqlformat sqlformat %{_bindir}/sqlformat-%{py_ver} 20