From 40f1f218e4e4992cbb0be246d41a217896de4f93c1f2deac460bf529e288e7f8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 3 Dec 2018 11:36:49 +0000 Subject: [PATCH] Don't apply the patch on old openSUSE OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=37 --- python-cmd2.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-cmd2.spec b/python-cmd2.spec index 29c97f5..ec5199f 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -69,7 +69,9 @@ Drop-in replacement adds several features for command-prompt tools: %prep %setup -q -n cmd2-%{version} +%if 0%{?sle_version} == 150000 && 0%{?is_opensuse} %patch0 -p1 +%endif # Fix non-executable-script sed -i -e '/^#!\//, 1d' cmd2/cmd2.py # Fix spurious-executable-perm