mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43:08 +00:00
Workaround mock-core-configs not being updated for F39 branch
mock still thinks the releasever for Rawhide is 39, which causes it to use the wrong GPG keys and not be able to install packages. This overrides that setting in our mock config file, until mock-core-configs is updated in the distro. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
b228af2f76
commit
8483e7bd82
@ -44,6 +44,11 @@ sub run {
|
||||
assert_script_run "dnf -y install mock git pykickstart tar", 120;
|
||||
# base mock config on original
|
||||
assert_script_run "echo \"include('/etc/mock/fedora-${mockver}-${arch}.cfg')\" > /etc/mock/openqa.cfg";
|
||||
if ($version eq $rawrel) {
|
||||
# FIXME correct releasever for Rawhide:
|
||||
# https://github.com/rpm-software-management/mock/issues/1177
|
||||
assert_script_run "echo \"config_opts['releasever'] = '${version}'\" >> /etc/mock/openqa.cfg";
|
||||
}
|
||||
# make the side and workarounds repos and the serial device available inside the mock root
|
||||
assert_script_run 'echo "config_opts[\'plugin_conf\'][\'bind_mount_enable\'] = True" >> /etc/mock/openqa.cfg';
|
||||
assert_script_run 'echo "config_opts[\'plugin_conf\'][\'bind_mount_opts\'][\'dirs\'].append((\'/mnt/updateiso/update_repo\', \'/mnt/updateiso/update_repo\'))" >> /etc/mock/openqa.cfg' if (get_var("ISO_2"));
|
||||
|
Loading…
Reference in New Issue
Block a user