Use more precise regular expression for python shebangs

Resolves: bz#1969433
This commit is contained in:
Jan Grulich 2021-06-11 09:12:17 +02:00
parent f2c74400df
commit 429a4d27a8
2 changed files with 27 additions and 23 deletions

View File

@ -52,9 +52,9 @@
-not -name 'Makefile' \\\
-type f | while read LINE \
do \
if grep --quiet "#\\!\\ */usr/bin/env\\ python\\|#\\!/usr/bin/python" "$LINE" \
if grep --quiet "#\\!\\ */usr/bin/env\\ python\\|#\\!/usr/bin/python$" "$LINE" \
then \
sed -i s@\\/usr\\/bin\\/python@\\/usr\\/bin\\/python3@ "$LINE" \
sed -i s@\\/usr\\/bin\\/python\\$@\\/usr\\/bin\\/python3@ "$LINE" \
sed -i s@\\/usr\\/bin\\/env\\ python@\\/usr\\/bin\\/python3@ "$LINE" \
fi \
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/ \

View File

@ -6,7 +6,7 @@
Name: qt5
Version: 5.15.2
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Qt5 meta package
License: GPLv3
URL: https://getfedora.org/
@ -141,7 +141,11 @@ echo "- Qt5 devel meta package" > %{buildroot}%{_docdir}/qt5-devel/README
%changelog
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-5
* Fri Jun 11 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-7
- Use more precise regular expression for python shebangs
Resolves: bz#1969433
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-6
- Handle additional spaces python shebangs
Resolves: bz#1969433