diff --git a/python-autopep8.changes b/python-autopep8.changes index 9d5ef0a..0665f08 100644 --- a/python-autopep8.changes +++ b/python-autopep8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 17:23:00 UTC 2014 - Led + +- fix bashism in pre script + ------------------------------------------------------------------- Thu Jul 10 12:42:02 UTC 2014 - toddrme2178@gmail.com diff --git a/python-autopep8.spec b/python-autopep8.spec index 04862b5..7be94cf 100644 --- a/python-autopep8.spec +++ b/python-autopep8.spec @@ -62,8 +62,7 @@ python setup.py test %pre # Since /usr/bin/autopep8 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}/autopep8 ]] && rm -f %{_bindir}/autopep8 -exit 0 +[ -h %{_bindir}/autopep8 ] || rm -f %{_bindir}/autopep8 %post update-alternatives --install %{_bindir}/autopep8 autopep8 %{_bindir}/autopep8-%{py_ver} 20