From 18602d72f383482c5b028588c65df68c1b657783 Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Thu, 17 Aug 2017 08:29:07 -0400 Subject: [PATCH] Change baseurl for PowerPC repo as "fedora-secondary" in _repo_setup_updates function Signed-off-by: Michel Normand --- lib/utils.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index 17a87ff2..3b52b409 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -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