From 053706df2bda17068aa18dfdd6404a007e903652430ed4acb55b64de7ee1ce32 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 14 Nov 2014 18:02:59 +0000
Subject: [PATCH] Accepting request 260381 from home:Ledest:misc
fix bashism in pre script
OBS-URL: https://build.opensuse.org/request/show/260381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testrunner?expand=0&rev=11
---
python-zope.testrunner.changes | 5 +++++
python-zope.testrunner.spec | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/python-zope.testrunner.changes b/python-zope.testrunner.changes
index c68a0aa..13cc23e 100644
--- a/python-zope.testrunner.changes
+++ b/python-zope.testrunner.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Nov 08 20:11:00 UTC 2014 - Led
+
+- fix bashism in pre script
+
-------------------------------------------------------------------
Thu Nov 14 15:45:40 UTC 2013 - p.drouand@gmail.com
diff --git a/python-zope.testrunner.spec b/python-zope.testrunner.spec
index 9741fe0..d6113e0 100644
--- a/python-zope.testrunner.spec
+++ b/python-zope.testrunner.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-zope.testrunner
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -67,8 +67,7 @@ ln -s %{_bindir}/zope-testrunner-%{py_ver} %{buildroot}%{_bindir}/zope-testrunn
%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}/zope-testrunner ]] && rm -f %{_bindir}/zope-testrunner
-exit 0
+[ -h %{_bindir}/zope-testrunner ] || rm -f %{_bindir}/zope-testrunner
%post
update-alternatives --install %{_bindir}/zope-testrunner zope-testrunner %{_bindir}/zope-testrunner-%{py_ver} 20