From 75d4f365b5dad2dc312a179d7641e166e5bf30a9946cdc820ac355b0714b677d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 11 Nov 2014 09:18:13 +0000 Subject: [PATCH] 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 --- python-rdflib.changes | 5 +++++ python-rdflib.spec | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-rdflib.changes b/python-rdflib.changes index 826dc4f..2c75948 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 20:27:00 UTC 2014 - Led + +- fix bashisms in pre script + ------------------------------------------------------------------- Thu Sep 11 12:31:20 UTC 2014 - toddrme2178@gmail.com diff --git a/python-rdflib.spec b/python-rdflib.spec index f88ff8c..56a1e5e 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -91,12 +91,11 @@ sed -i 's/\r$//' docs/_build/html/_static/jquery.js %pre # 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: -[[ ! -L %{_bindir}/csv2rdf ]] && rm -f %{_bindir}/csv2rdf -[[ ! -L %{_bindir}/rdf2dot ]] && rm -f %{_bindir}/rdf2dot -[[ ! -L %{_bindir}/rdfgraphisomorphism ]] && rm -f %{_bindir}/rdfgraphisomorphism -[[ ! -L %{_bindir}/rdfpipe ]] && rm -f %{_bindir}/rdfpipe -[[ ! -L %{_bindir}/rdfs2dot ]] && rm -f %{_bindir}/rdfs2dot -exit 0 +[ -h %{_bindir}/csv2rdf ] || rm -f %{_bindir}/csv2rdf +[ -h %{_bindir}/rdf2dot ] || rm -f %{_bindir}/rdf2dot +[ -h %{_bindir}/rdfgraphisomorphism ] || rm -f %{_bindir}/rdfgraphisomorphism +[ -h %{_bindir}/rdfpipe ] || rm -f %{_bindir}/rdfpipe +[ -h %{_bindir}/rdfs2dot ] || rm -f %{_bindir}/rdfs2dot %post update-alternatives \