version 1.9, 2009/07/14 03:05:59
|
version 1.10, 2009/07/14 21:12:51
|
Line 70 my $loninst = 'http://install.loncapa.or
|
Line 70 my $loninst = 'http://install.loncapa.or
|
my $loninst_re = 'http://install\.loncapa\.org'; |
my $loninst_re = 'http://install\.loncapa\.org'; |
if ($dist =~ /^fedora(\d+)$/) { |
if ($dist =~ /^fedora(\d+)$/) { |
my $ver = $1; |
my $ver = $1; |
my $gpgchk = 0; |
my $gpgchk = '0'; |
my $gpg = "$loninst/versions/fedora/RPM-GPG-KEY-loncapa"; |
my $gpg = "$loninst/versions/fedora/RPM-GPG-KEY-loncapa"; |
if ($ver > 6) { |
if ($ver > 6) { |
$gpgchk = 1; |
$gpgchk = '1'; |
} |
} |
$yum_status = |
$yum_status = |
&update_file('/etc/yum.conf', |
&update_file('/etc/yum.conf', |
[{section => 'loncapa-updates-$basearch', |
[{section => 'loncapa-updates-basearch', |
key => 'name=', |
key => 'name=', |
value => 'Fedora Core $releasever LON-CAPA $basearch Updates', |
value => 'Fedora Core $releasever LON-CAPA $basearch Updates', |
}, {section => 'loncapa-updates-$basearch', |
}, {section => 'loncapa-updates-basearch', |
key => 'baseurl=', |
key => 'baseurl=', |
value => $loninst.'/fedora/linux/loncapa/$releasever/$basearch', |
value => $loninst.'/fedora/linux/loncapa/$releasever/$basearch', |
}, {section => 'loncapa-updates-$basearch', |
}, {section => 'loncapa-updates-basearch', |
key => 'gpgcheck=', |
key => 'gpgcheck=', |
value => $gpgchk, |
value => $gpgchk, |
}, {section => 'loncapa-updates-$basearch', |
}, {section => 'loncapa-updates-basearch', |
key => 'gpg=', |
key => 'gpg=', |
value => $gpg, |
value => $gpg, |
}, {section => 'loncapa-updates-noarch', |
}, {section => 'loncapa-updates-noarch', |
Line 146 if ($dist =~ /^fedora(\d+)$/) {
|
Line 146 if ($dist =~ /^fedora(\d+)$/) {
|
}, {section => 'loncapa-updates-basearch', |
}, {section => 'loncapa-updates-basearch', |
key => 'gpgcheck=', |
key => 'gpgcheck=', |
value => $info{$type}{gpchk}, |
value => $info{$type}{gpchk}, |
}, {section => 'loncapa-updates-$basearch', |
}, {section => 'loncapa-updates-basearch', |
key => 'gpgkey=', |
key => 'gpgkey=', |
value => "$loninst/$info{$type}{gpg}", |
value => "$loninst/$info{$type}{gpg}", |
}, {section => 'loncapa-updates-noarch', |
}, {section => 'loncapa-updates-noarch', |