From 7d36b8f501a5f8abf1151be16296f6ee2178e75a1e7b73a172ef4b10419b34d5 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Tue, 11 Nov 2014 13:33:57 +0000 Subject: [PATCH] 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 --- python-Cython.changes | 5 +++++ python-Cython.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-Cython.changes b/python-Cython.changes index 12e9bce..f9ad4e5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 09 22:57:00 UTC 2014 - Led + +- fix bashisms in pre script + ------------------------------------------------------------------- Fri Sep 12 10:52:18 UTC 2014 - toddrme2178@gmail.com diff --git a/python-Cython.spec b/python-Cython.spec index 1d8d86c..f6fcf12 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -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 \