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:
parent
dbb90f5dc1
commit
9bb7de7385
@ -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,
|
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).
|
because in tests we usually rely on `PYTHONPATH` (and `-s` ignores that).
|
||||||
Would this behavior be undesired for any reason,
|
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.
|
Extras are currently ignored.
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ if [ ! -f $config ]; then
|
|||||||
original="/etc/mock/fedora-${fedora}-x86_64.cfg"
|
original="/etc/mock/fedora-${fedora}-x86_64.cfg"
|
||||||
cp $original $config
|
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
|
cat /etc/yum.repos.d/test-pyproject-rpm-macros.repo >> $config
|
||||||
echo -e '\n"""\n' >> $config
|
echo -e '\n"""\n' >> $config
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user