[LON-CAPA-cvs] cvs: loncom /build check-rpms

harris41 lon-capa-cvs@mail.lon-capa.org
Thu, 05 Sep 2002 17:20:46 -0000


harris41		Thu Sep  5 13:20:46 2002 EDT

  Modified files:              
    /loncom/build	check-rpms 
  Log:
  minor improvements; also adding support for --rpmuser
  
  
Index: loncom/build/check-rpms
diff -u loncom/build/check-rpms:1.4 loncom/build/check-rpms:1.5
--- loncom/build/check-rpms:1.4	Thu Aug  1 00:57:18 2002
+++ loncom/build/check-rpms	Thu Sep  5 13:20:46 2002
@@ -90,7 +90,7 @@
 
 my $retval = &GetOptions("verbose|v","lm|list-missing","lq|list-questionable",
                          "dir|d=s","ftp:s","noftp","download|dl","recheck|r",
-                         "nk|no-kernel","update","c=s");
+                         "nk|no-kernel","update","c=s","rpmuser=s");
 
 =pod
 
@@ -203,6 +203,10 @@
 is omitted, I<check-rpms> will use the default configuration
 file I</usr/local/etc/check-rpms.conf>, if it exists.
 
+=item B<--rpmuser> I<user name>
+
+Specifying $RPMUSER on the command line.
+
 =back
 
 =head1 EXAMPLES
@@ -263,7 +267,7 @@
 $DEFRPMDIR = "/mnt/redhat/RedHat/RPMS";
 $DEFFTPSERVER = "updates.redhat.com";
 $DEFFTPUPDATES = "$RHversion/en/os";
-$DEFRPMUSER = "harris41";
+$DEFRPMUSER = "nobody";
 
 $RPMDIR=$DEFRPMDIR;
 
@@ -297,7 +301,7 @@
 
  # $RPMUSER is the user name that check-rpms switches to for most of
  # the script when run as root
- $RPMUSER = "harris41";
+ $RPMUSER = "adminjoe";
 
  # $FTPSERVER and $FTPUPDATES are the hostname of a ftp server and the
  # directory where RPM updates can be found without the <arch> directory.
@@ -316,6 +320,10 @@
 } else {
    $FTPSERVER = $DEFFTPSERVER;
    $FTPUPDATES = $DEFFTPUPDATES;
+}
+
+if ($opt_rpmuser) {
+   $DEFRPMUSER = $opt_rpmuser;
 }
 
 # check whether we are running as root