From 6818df046f5c6d55a193b15e07d04c7175c615e50bd1927b7d5b52a3d18947e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 5 Aug 2021 15:44:25 +0000 Subject: [PATCH] Accepting request 910328 from home:dimstar:Factory - Remove executable flag from examples/*.py: since we already patch out the shebangs, they are not directly startable anyway (boo#1189065). * Fixed a bug truncating before attribute after a timeout OBS-URL: https://build.opensuse.org/request/show/910328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=55 --- python-pexpect.changes | 9 ++++++++- python-pexpect.spec | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-pexpect.changes b/python-pexpect.changes index 48231ff..8a80f52 100644 --- a/python-pexpect.changes +++ b/python-pexpect.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 5 12:42:51 UTC 2021 - Dominique Leuenberger + +- Remove executable flag from examples/*.py: since we already patch + out the shebangs, they are not directly startable anyway + (boo#1189065). + ------------------------------------------------------------------- Thu Mar 12 11:32:53 UTC 2020 - Tomáš Chvátal @@ -9,7 +16,7 @@ Fri Feb 14 12:44:51 UTC 2020 - Ondřej Súkup - update to 4.8.0 * Returned behavior of searchwindowsize to that in 4.3 and earlier - * Fixed a bug truncating before attribute after a timeout + * Fixed a bug truncating before attribute after a timeout * Fixed a bug where a search could be less than searchwindowsize if it was increased between calls * Minor test cleanups to improve portability diff --git a/python-pexpect.spec b/python-pexpect.spec index cc3285c..923aae5 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -1,7 +1,7 @@ # # spec file for package python-pexpect # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -51,6 +51,8 @@ controlling them; and responding to expected patterns in their output. # Fix wrong-script-interpreter find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \; find examples -type f -name "*.cgi" -exec sed -i "s|##!%{_bindir}/env python|##!%{_bindir}/python|" {} \; +# Mark example *.py as non-executable (we already patch the shebang out, so they can't be started anyway) +find examples -type f -name "*.py" -exec chmod 644 {} \; %build %python_build