[LON-CAPA-cvs] cvs: loncom /build CHECKRPMS

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


harris41		Thu Sep  5 17:17:32 2002 EDT

  Modified files:              
    /loncom/build	CHECKRPMS 
  Log:
  minor grammar fix, and adding a redownload option to help those with
  dialup connections
  
  
Index: loncom/build/CHECKRPMS
diff -u loncom/build/CHECKRPMS:1.5 loncom/build/CHECKRPMS:1.6
--- loncom/build/CHECKRPMS:1.5	Thu Sep  5 14:09:54 2002
+++ loncom/build/CHECKRPMS	Thu Sep  5 17:17:31 2002
@@ -53,14 +53,14 @@
 # =================================================== READ IN COMMAND ARGUMENTS
 # ---------------------------------------------------- Process download option.
 my $download=shift(@ARGV);
-if ($download eq '--download')
+if ($download eq '--download' or $download eq '--redownload')
   {
     if ($< != 0) # Download mode requires 'root'.
       {
         print('**** ERROR **** Download mode needs to be run as root'."\n");
 	exit(1); # Exit with error status.
       }
-    `rm -Rf /tmp/loncapa_rpm_updates`;
+    `rm -Rf /tmp/loncapa_rpm_updates` if $download eq '--download';
     $download='-v -dl -d /tmp/loncapa_rpm_updates'; # Part of check-rpms args.
   }
 else
@@ -135,7 +135,7 @@
               {
 		$|=1; # Try to send things immediately to stdout; err umm....
 		# Tell the user about the /tmp/loncapa_rpm_updates directory.
-		print('**** NOTE ****'.
+		print('**** NOTE **** '.
 		      'To check the status of the download, you can '.
 		      'periodically inspect the contents of the '.
 		      '/tmp/loncapa_rpm_updates directory.  '.