Fix %%py_shebang_flags handling within %%py_check_import

%%py{3}_check_import now respects the custom setting of %%py{3}_shebang_flags
and invokes Python with the respective values.
If %%py{3}_shebang_flags is undefined or set to no value,
there no flags are passed to Python on invoke.
Resolves: rhbz#2018615
This commit is contained in:
Karolina Surma 2021-11-01 13:17:42 +01:00
commit 4a65e2cfa6
4 changed files with 45 additions and 8 deletions

View file

@ -101,6 +101,8 @@ install -m 644 import_all_modules.py %{buildroot}%{_rpmconfigdir}/redhat/
* Mon Nov 01 2021 Karolina Surma <ksurma@redhat.com> - 3.9-41
- Fix multiline arguments processing for %%py_check_import
Resolves: rhbz#2018809
- Fix %%py_shebang_flags handling within %%py_check_import
Resolves: rhbz#2018615
* Mon Oct 25 2021 Karolina Surma <ksurma@redhat.com> - 3.9-40
- Introduce -f (read from file) option to %%py{3}_check_import