Accepting request 260380 from home:Ledest:misc

fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260380
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=44
This commit is contained in:
Denisart Benjamin 2014-11-14 18:02:50 +00:00 committed by Git OBS Bridge
parent 1508dc2b2f
commit 7e575ddc64
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 08 20:07:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in pre script
-------------------------------------------------------------------
Tue Sep 16 13:33:46 UTC 2014 - tbechtold@suse.com

View File

@ -76,8 +76,7 @@ ln -s %{_bindir}/virtualenv-%{py_ver} %{buildroot}%{_bindir}/virtualenv
%pre
# Since /usr/bin/virtualenv 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}/virtualenv ]] && rm -f %{_bindir}/virtualenv
exit 0
[ -h %{_bindir}/virtualenv ] || rm -f %{_bindir}/virtualenv
%post
update-alternatives \