a caseinsensitive filename would be prefered but not working up to now

This commit is contained in:
lumarel 2022-08-20 21:57:49 +02:00 committed by Trevor Cooper
parent d8a05cd066
commit 20e89ccb48
1 changed files with 7 additions and 1 deletions

View File

@ -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}";
}