Change baseurl for PowerPC repo as "fedora-secondary"

in _repo_setup_updates function

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2017-08-17 08:29:07 -04:00
parent 0b5ef9fe84
commit 18602d72f3
1 changed files with 6 additions and 0 deletions

View File

@ -355,6 +355,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";
if (get_var("OFW")) {
# the uncommented baseurl line must be changed for PowerPC
# from download.fedoraproject.org/pub/fedora/linux/...
# to download.fedoraproject.org/pub/fedora-secondary/...
script_run "sed -i -e 's,/pub/fedora/linux/,/pub/fedora-secondary/,g' /etc/yum.repos.d/fedora*.repo", 0;
}
if (get_var("DEVELOPMENT")) {
# Fix URL for fedora.repo if this is a development release
# This is rather icky, but I can't think of any better way