From 12a9e8ec000e489e06b6322bbc3283c92859ca09 Mon Sep 17 00:00:00 2001 From: Trevor Cooper Date: Wed, 3 Apr 2024 20:55:24 -0700 Subject: [PATCH] use VERSION instead of CURRREL in repos_mirrorlist --- lib/utils.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index bbfabfa0..aaf77ced 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -433,9 +433,12 @@ sub repos_mirrorlist { # the infra repo is updated but mirrormanager metadata checksums # have not been updated, and the infra repo is rejected as its # metadata checksum isn't known to MM + # NOTE: For Rocky CURRREL is used to specify/select HDD1 for multi-host + # tests, for example *8.10-BETA*qcow2, and repo names are + # really tied to the major version in Rocky. my $files = shift; - my $currentversion = get_var("CURRREL"); - if ($currentversion eq '8') { + my $currentversion = get_var("VERSION"); + if (get_version_major($currentversion) eq '8') { $files ||= "/etc/yum.repos.d/Rocky*.repo"; } else {