[LON-CAPA-cvs] cvs: loncom /debugging_tools modify_config_files.pl

raeburn raeburn@source.lon-capa.org
Tue, 14 Jul 2009 21:12:51 -0000


raeburn		Tue Jul 14 21:12:51 2009 EDT

  Modified files:              
    /loncom/debugging_tools	modify_config_files.pl 
  Log:
  Replace $basearch with basearch in section headings for distros which use yum.
  
  
Index: loncom/debugging_tools/modify_config_files.pl
diff -u loncom/debugging_tools/modify_config_files.pl:1.9 loncom/debugging_tools/modify_config_files.pl:1.10
--- loncom/debugging_tools/modify_config_files.pl:1.9	Tue Jul 14 03:05:59 2009
+++ loncom/debugging_tools/modify_config_files.pl	Tue Jul 14 21:12:51 2009
@@ -2,7 +2,7 @@
 #
 # The LearningOnline Network
 #
-# $Id: modify_config_files.pl,v 1.9 2009/07/14 03:05:59 raeburn Exp $
+# $Id: modify_config_files.pl,v 1.10 2009/07/14 21:12:51 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -70,23 +70,23 @@
 my $loninst_re = 'http://install\.loncapa\.org';
 if ($dist =~ /^fedora(\d+)$/) {
     my $ver = $1;
-    my $gpgchk = 0;
+    my $gpgchk = '0';
     my $gpg = "$loninst/versions/fedora/RPM-GPG-KEY-loncapa"; 
     if ($ver > 6) {
-        $gpgchk = 1;
+        $gpgchk = '1';
     }
     $yum_status =  
         &update_file('/etc/yum.conf',
-             [{section => 'loncapa-updates-$basearch',
+             [{section => 'loncapa-updates-basearch',
                key     => 'name=',
                value   => 'Fedora Core $releasever LON-CAPA $basearch Updates',
-           }, {section => 'loncapa-updates-$basearch',
+           }, {section => 'loncapa-updates-basearch',
                key     => 'baseurl=',
                value   => $loninst.'/fedora/linux/loncapa/$releasever/$basearch',
-           }, {section => 'loncapa-updates-$basearch',
+           }, {section => 'loncapa-updates-basearch',
                key     => 'gpgcheck=',
                value   =>  $gpgchk,
-           }, {section => 'loncapa-updates-$basearch',
+           }, {section => 'loncapa-updates-basearch',
                key     => 'gpg=',
                value   => $gpg,
            }, {section => 'loncapa-updates-noarch',
@@ -146,7 +146,7 @@
                       }, {section => 'loncapa-updates-basearch',
                           key     => 'gpgcheck=',
                           value   => $info{$type}{gpchk},
-                      }, {section => 'loncapa-updates-$basearch',
+                      }, {section => 'loncapa-updates-basearch',
                           key     => 'gpgkey=',
                           value   => "$loninst/$info{$type}{gpg}",
                       }, {section => 'loncapa-updates-noarch',