From 28c1487bbc47da5c619c2256d2b2ad7b0a80fd6e9f94f75899df22266b7ebc1d Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Fri, 14 Nov 2014 15:30:08 +0000 Subject: [PATCH] Accepting request 260365 from home:Ledest:misc fix bashism in pre script OBS-URL: https://build.opensuse.org/request/show/260365 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopep8?expand=0&rev=16 --- python-autopep8.changes | 5 +++++ python-autopep8.spec | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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