From f0f2db7aa26fe4700d4b9e81da049fa23ed63d36b6d777860f50c6c0db24d8d5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 12 Jul 2017 09:33:12 +0000 Subject: [PATCH] Accepting request 509285 from home:TheBlackCat:branches:devel:languages:python Fix wrong-script-interpreter rpmlint error. OBS-URL: https://build.opensuse.org/request/show/509285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=25 --- python-pexpect.changes | 5 +++++ python-pexpect.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-pexpect.changes b/python-pexpect.changes index 28b9ef3..2db0d66 100644 --- a/python-pexpect.changes +++ b/python-pexpect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com + +- Fix wrong-script-interpreter rpmlint error. + ------------------------------------------------------------------- Wed Apr 19 17:57:01 UTC 2017 - toddrme2178@gmail.com diff --git a/python-pexpect.spec b/python-pexpect.spec index 08b3884..fa36829 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -46,6 +46,10 @@ controlling them; and responding to expected patterns in their output. %prep %setup -n pexpect-%{version} +# Fix wrong-script-interpreter +find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \; +find examples -type f -name "*.cgi" -exec sed -i "s|##!/usr/bin/env python|##!/usr/bin/python|" {} \; + %build %python_build