From a59be551b3a327a1c56b63ef800f9c21e43acc57a6162ef48b3f1fb127c798ee Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 14 Nov 2014 15:40:19 +0000
Subject: [PATCH] Accepting request 260389 from home:Ledest:misc
fix bashism in pre script
OBS-URL: https://build.opensuse.org/request/show/260389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=4
---
python-sqlparse.changes | 5 +++++
python-sqlparse.spec | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/python-sqlparse.changes b/python-sqlparse.changes
index 8b1a93d..2686b10 100644
--- a/python-sqlparse.changes
+++ b/python-sqlparse.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Nov 08 20:20:00 UTC 2014 - Led
+
+- fix bashism in pre script
+
-------------------------------------------------------------------
Fri Nov 15 12:18:02 UTC 2013 - speilicke@suse.com
diff --git a/python-sqlparse.spec b/python-sqlparse.spec
index 252945e..716ad00 100644
--- a/python-sqlparse.spec
+++ b/python-sqlparse.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-sqlparse
#
-# 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
@@ -59,8 +59,7 @@ py.test tests
%pre
# Since /usr/bin/sqlformat 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}/sqlformat ]] && rm -f %{_bindir}/sqlformat
-exit 0
+[ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat
%post
update-alternatives --install %{_bindir}/sqlformat sqlformat %{_bindir}/sqlformat-%{py_ver} 20