mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-18 09:08:29 +00:00
use VERSION instead of CURRREL in repos_mirrorlist
This commit is contained in:
parent
b09dc79f33
commit
12a9e8ec00
@ -433,9 +433,12 @@ sub repos_mirrorlist {
|
|||||||
# the infra repo is updated but mirrormanager metadata checksums
|
# the infra repo is updated but mirrormanager metadata checksums
|
||||||
# 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
|
||||||
|
# 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 $files = shift;
|
||||||
my $currentversion = get_var("CURRREL");
|
my $currentversion = get_var("VERSION");
|
||||||
if ($currentversion eq '8') {
|
if (get_version_major($currentversion) eq '8') {
|
||||||
$files ||= "/etc/yum.repos.d/Rocky*.repo";
|
$files ||= "/etc/yum.repos.d/Rocky*.repo";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user