diff --git a/python-Babel.changes b/python-Babel.changes index ec1bc2a..dc6668c 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 17:11:00 UTC 2014 - Led + +- fix bashism in pre script + ------------------------------------------------------------------- Fri Aug 15 11:42:11 UTC 2014 - sfalken@opensuse.org diff --git a/python-Babel.spec b/python-Babel.spec index 2b0941b..4ff16f0 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -72,8 +72,7 @@ LC_ALL=C py.test tests %pre # Since /usr/bin/pybabel 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}/pybabel ]] && rm -f %{_bindir}/pybabel -exit 0 +[ -h %{_bindir}/pybabel ] || rm -f %{_bindir}/pybabel %post update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py_ver} 20