version 1.20, 2021/03/25 13:23:07
|
version 1.21, 2021/12/20 03:13:29
|
Line 113 if ($dist =~ /^fedora(\d+)$/) {
|
Line 113 if ($dist =~ /^fedora(\d+)$/) {
|
key => 'gpgkey=', |
key => 'gpgkey=', |
value => $gpg, |
value => $gpg, |
}],$nobackup); |
}],$nobackup); |
} elsif ($dist =~ /^(rhes|centos|scientific|oracle)(\d+)$/) { |
} elsif ($dist =~ /^(rhes|centos|scientific|oracle|rocky|alma)(\d+)$/) { |
my $type = $1; |
my $type = $1; |
my $ver = $2; |
my $ver = $2; |
my $longver = $ver; |
my $longver = $ver; |
Line 150 if ($dist =~ /^fedora(\d+)$/) {
|
Line 150 if ($dist =~ /^fedora(\d+)$/) {
|
gpg => 'versions/oracle/RPM-GPG-KEY-loncapa', |
gpg => 'versions/oracle/RPM-GPG-KEY-loncapa', |
gpgchk => 1, |
gpgchk => 1, |
}, |
}, |
|
rocky => { |
|
title => 'Rocky Linux', |
|
path => 'rocky/loncapa', |
|
gpg => 'versions/rocky/RPM-GPG-KEY-loncapa', |
|
gpgchk => 1, |
|
}, |
|
alma => { |
|
title => 'AlmaLinux', |
|
path => 'alma/loncapa', |
|
gpg => 'versions/alma/RPM-GPG-KEY-loncapa', |
|
gpgchk => 1, |
|
}, |
); |
); |
if (ref($info{$type}) eq 'HASH') { |
if (ref($info{$type}) eq 'HASH') { |
if ($ver > 4) { |
if ($ver > 4) { |
my $file = '/etc/yum.conf'; |
my $file = '/etc/yum.conf'; |
if (($ver > 7) || ($type eq 'oracle')) { |
if (($ver > 7) || ($type eq 'oracle') || ($type eq 'rocky') || ($type eq 'alma')) { |
$file = '/etc/yum.repos.d/loncapa.repo'; |
$file = '/etc/yum.repos.d/loncapa.repo'; |
$nobackup = 1; |
$nobackup = 1; |
} |
} |