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
This commit is contained in:
Dirk Mueller 2017-07-12 09:33:12 +00:00 committed by Git OBS Bridge
parent eb770e4898
commit f0f2db7aa2
2 changed files with 9 additions and 0 deletions

View File

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

View File

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