Accepting request 260355 from home:Ledest:misc

fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=16
This commit is contained in:
Denisart Benjamin 2014-11-14 15:30:00 +00:00 committed by Git OBS Bridge
parent 991122cf4f
commit fbae82727b
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 08 17:11:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in pre script
-------------------------------------------------------------------
Fri Aug 15 11:42:11 UTC 2014 - sfalken@opensuse.org

View File

@ -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