Accepting request 260390 from home:Ledest:misc

fix bashisms in pre script

OBS-URL: https://build.opensuse.org/request/show/260390
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2014-11-11 09:18:13 +00:00 committed by Git OBS Bridge
parent 4c2884bb0c
commit 75d4f365b5
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 08 20:27:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in pre script
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 11 12:31:20 UTC 2014 - toddrme2178@gmail.com Thu Sep 11 12:31:20 UTC 2014 - toddrme2178@gmail.com

View File

@ -91,12 +91,11 @@ sed -i 's/\r$//' docs/_build/html/_static/jquery.js
%pre %pre
# Since /usr/bin/* became ghosted to be used with update-alternatives, we have to get rid # Since /usr/bin/* 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: # of the old binary resulting from the non-update-alternativies-ified package:
[[ ! -L %{_bindir}/csv2rdf ]] && rm -f %{_bindir}/csv2rdf [ -h %{_bindir}/csv2rdf ] || rm -f %{_bindir}/csv2rdf
[[ ! -L %{_bindir}/rdf2dot ]] && rm -f %{_bindir}/rdf2dot [ -h %{_bindir}/rdf2dot ] || rm -f %{_bindir}/rdf2dot
[[ ! -L %{_bindir}/rdfgraphisomorphism ]] && rm -f %{_bindir}/rdfgraphisomorphism [ -h %{_bindir}/rdfgraphisomorphism ] || rm -f %{_bindir}/rdfgraphisomorphism
[[ ! -L %{_bindir}/rdfpipe ]] && rm -f %{_bindir}/rdfpipe [ -h %{_bindir}/rdfpipe ] || rm -f %{_bindir}/rdfpipe
[[ ! -L %{_bindir}/rdfs2dot ]] && rm -f %{_bindir}/rdfs2dot [ -h %{_bindir}/rdfs2dot ] || rm -f %{_bindir}/rdfs2dot
exit 0
%post %post
update-alternatives \ update-alternatives \