From fbae82727b3799c6537da20470ddc46f092d9e77ab6dfd0cc6866178a794527d Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 14 Nov 2014 15:30:00 +0000
Subject: [PATCH] Accepting request 260355 from home:Ledest:misc
fix bashism in pre script
OBS-URL: https://build.opensuse.org/request/show/260355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=16
---
python-Babel.changes | 5 +++++
python-Babel.spec | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/python-Babel.changes b/python-Babel.changes
index ec1bc2a..dc6668c 100644
--- a/python-Babel.changes
+++ b/python-Babel.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Nov 08 17:11:00 UTC 2014 - Led
+
+- fix bashism in pre script
+
-------------------------------------------------------------------
Fri Aug 15 11:42:11 UTC 2014 - sfalken@opensuse.org
diff --git a/python-Babel.spec b/python-Babel.spec
index 2b0941b..4ff16f0 100644
--- a/python-Babel.spec
+++ b/python-Babel.spec
@@ -72,8 +72,7 @@ LC_ALL=C py.test tests
%pre
# Since /usr/bin/pybabel 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}/pybabel ]] && rm -f %{_bindir}/pybabel
-exit 0
+[ -h %{_bindir}/pybabel ] || rm -f %{_bindir}/pybabel
%post
update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py_ver} 20