forked from pool/python-Cython
Accepting request 260552 from home:Ledest:misc
fix bashisms in pre script OBS-URL: https://build.opensuse.org/request/show/260552 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=49
This commit is contained in:
committed by
Git OBS Bridge
parent
c6bdb0a00f
commit
7d36b8f501
@@ -80,10 +80,9 @@ ln -s %{_bindir}/cygdb-%{py_ver} %{buildroot}%{_bindir}/cygdb
|
||||
%pre
|
||||
# Since /usr/bin/cython and /usr/bin/cygdb 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}/cygdb ]] && rm -f %{_bindir}/cygdb
|
||||
[[ ! -L %{_bindir}/cythonize ]] && rm -f %{_bindir}/cythonize
|
||||
[[ ! -L %{_bindir}/cython ]] && rm -f %{_bindir}/cython
|
||||
exit 0
|
||||
[ -h %{_bindir}/cygdb ] || rm -f %{_bindir}/cygdb
|
||||
[ -h %{_bindir}/cythonize ] || rm -f %{_bindir}/cythonize
|
||||
[ -h %{_bindir}/cython ] || rm -f %{_bindir}/cython
|
||||
|
||||
%post
|
||||
update-alternatives \
|
||||
|
Reference in New Issue
Block a user