1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Try to fix up some errors in fedora-repos baseurls in F28

This is breaking all f28 update tests, sigh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-05-02 15:35:50 -07:00
parent cec1da9372
commit cef45346b6

View File

@ -376,6 +376,12 @@ sub _repo_setup_updates {
# have not been updated, and the infra repo is rejected as its
# metadata checksum isn't known to MM
assert_script_run "sed -i -e 's,^metalink,#metalink,g' -e 's,^#baseurl,baseurl,g' /etc/yum.repos.d/fedora*.repo";
# fix up some errors in fedora-repos baseurls in F28:
# https://pagure.io/fedora-repos/issue/70
if (get_var("VERSION") == 28) {
assert_script_run 'sed -i -e "s,^\(#baseurl.*/\)os/$,\1,g" /etc/yum.repos.d/fedora*updates*.repo';
assert_script_run 'sed -i -e "s,/testing-modular/,,g" /etc/yum.repos.d/fedora*updates*.repo';
}
if (get_var("OFW")) {
# the uncommented baseurl line must be changed for PowerPC
# from download.fedoraproject.org/pub/fedora/linux/...