From 20e89ccb482d3114598a10002668c16329de3c91 Mon Sep 17 00:00:00 2001 From: lumarel Date: Sat, 20 Aug 2022 21:57:49 +0200 Subject: [PATCH] a caseinsensitive filename would be prefered but not working up to now --- lib/utils.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index a8c9a03e..be4b376c 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -434,7 +434,13 @@ sub repos_mirrorlist { # have not been updated, and the infra repo is rejected as its # metadata checksum isn't known to MM my $files = shift; - $files ||= "/etc/yum.repos.d/Rocky*.repo"; + my $currentversion = get_var("CURRREL"); + if ($currentversion eq '8') { + $files ||= "/etc/yum.repos.d/Rocky*.repo"; + } + else { + $files ||= "/etc/yum.repos.d/rocky*.repo"; + } assert_script_run "sed -i -e 's,metalink,mirrorlist,g' ${files}"; }