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

View File

@ -434,7 +434,13 @@ sub repos_mirrorlist {
# have not been updated, and the infra repo is rejected as its # have not been updated, and the infra repo is rejected as its
# metadata checksum isn't known to MM # metadata checksum isn't known to MM
my $files = shift; my $files = shift;
my $currentversion = get_var("CURRREL");
if ($currentversion eq '8') {
$files ||= "/etc/yum.repos.d/Rocky*.repo"; $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}"; assert_script_run "sed -i -e 's,metalink,mirrorlist,g' ${files}";
} }