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
This commit is contained in:
Matej Cepl 2018-12-03 11:36:49 +00:00 committed by Git OBS Bridge
parent dbf2aebf86
commit 40f1f218e4

View File

@ -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