Fedora CI: Update the mock config to support mock 2.0

See https://github.com/rpm-software-management/mock/wiki/Release-Notes-2.0
This commit is contained in:
Miro Hrončok 2020-02-07 19:52:27 +01:00
parent dbb90f5dc1
commit 9bb7de7385
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ For example `#!/usr/bin/python3 -Ru` will be updated to `#!/usr/bin/python3 -sRu
Sometimes, this can interfere with tests that run such scripts directly by name,
because in tests we usually rely on `PYTHONPATH` (and `-s` ignores that).
Would this behavior be undesired for any reason,
undefine `%{py3_shbang_opt}` to turn it of.
undefine `%{py3_shbang_opt}` to turn it off.
Extras are currently ignored.

View File

@ -17,7 +17,7 @@ if [ ! -f $config ]; then
original="/etc/mock/fedora-${fedora}-x86_64.cfg"
cp $original $config
echo -e '\n\nconfig_opts["yum.conf"] += """' >> $config
echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config
cat /etc/yum.repos.d/test-pyproject-rpm-macros.repo >> $config
echo -e '\n"""\n' >> $config
fi