From 5ebeaaf81a5c84b2234f9d41dfbac70743b9f07dd1b5cc3c12a969dd8704bf2e Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 14 Nov 2014 18:03:18 +0000
Subject: [PATCH] Accepting request 260395 from home:Ledest:misc
fix bashism in pre script
OBS-URL: https://build.opensuse.org/request/show/260395
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=6
---
python-lesscpy.changes | 5 +++++
python-lesscpy.spec | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/python-lesscpy.changes b/python-lesscpy.changes
index b72a670..c92c57b 100644
--- a/python-lesscpy.changes
+++ b/python-lesscpy.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Nov 08 20:50:00 UTC 2014 - Led
+
+- fix bashism in pre script
+
-------------------------------------------------------------------
Mon Aug 12 11:42:11 UTC 2013 - speilicke@suse.com
diff --git a/python-lesscpy.spec b/python-lesscpy.spec
index ad689c4..5603db7 100644
--- a/python-lesscpy.spec
+++ b/python-lesscpy.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-lesscpy
#
-# 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
@@ -63,8 +63,7 @@ python lesscpy/test/__main__.py # Sigh!
%pre
# Since /usr/bin/lesscpy became ghosted to be used with update-alternatives, we
# have to get rid of the old binary:
-[[ ! -L %{_bindir}/lesscpy ]] && rm -f %{_bindir}/lesscpy
-exit 0
+[ -h %{_bindir}/lesscpy ] || rm -f %{_bindir}/lesscpy
%post
update-alternatives \