15
0

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

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