From 507e0aada93410ead828167f663ac8cb4b27264092ed753814a967429e785abc Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 14 Nov 2014 15:31:02 +0000
Subject: [PATCH] Accepting request 260387 from home:Ledest:misc
fix bashism in pre script
OBS-URL: https://build.opensuse.org/request/show/260387
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=33
---
python-pip.changes | 5 +++++
python-pip.spec | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/python-pip.changes b/python-pip.changes
index f04c378..c9628fe 100644
--- a/python-pip.changes
+++ b/python-pip.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Nov 08 20:39:00 UTC 2014 - Led
+
+- fix bashism in pre script
+
-------------------------------------------------------------------
Wed Jan 8 11:03:18 UTC 2014 - speilicke@suse.com
diff --git a/python-pip.spec b/python-pip.spec
index 22e8547..6e63795 100644
--- a/python-pip.spec
+++ b/python-pip.spec
@@ -67,8 +67,7 @@ python setup.py test
%pre
# Since /usr/bin/pip became ghosted to be used with update-alternatives, we have to get rid
# of the old binary resulting from the non-update-alternatives-ified package:
-[[ ! -L %{_bindir}/pip ]] && rm -f %{_bindir}/pip
-exit 0
+[ -h %{_bindir}/pip ] || rm -f %{_bindir}/pip
%post
update-alternatives --install %{_bindir}/pip pip %{_bindir}/pip%{py_ver} 20