From d803ebf3caf62d82752e299a70272b46a6b44f74 Mon Sep 17 00:00:00 2001 From: Trevor Cooper Date: Thu, 7 Jul 2022 21:49:15 -0700 Subject: [PATCH] release rocky-repos content require switch from mirrorlist to baseurl --- tests/_staging_repos_enable.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/_staging_repos_enable.pm b/tests/_staging_repos_enable.pm index 4acd328f..e5fcbb45 100644 --- a/tests/_staging_repos_enable.pm +++ b/tests/_staging_repos_enable.pm @@ -10,6 +10,9 @@ sub run { if (get_version_major() < 9) { script_run "sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*"; script_run "sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*"; + } else { + script_run "sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*"; + script_run "sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/rocky*"; } script_run 'printf "stg/rocky\n" > /etc/dnf/vars/contentdir'; script_run 'dnf clean all';