From: Brian E. F. <bri...@us...> - 2004-06-29 23:19:35
|
Update of /cvsroot/sisuite/sisuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13620 Modified Files: install Log Message: if --list and --download-only, just --list Index: install =================================================================== RCS file: /cvsroot/sisuite/sisuite/install,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- install 9 Mar 2004 05:40:54 -0000 1.8 +++ install 29 Jun 2004 23:19:26 -0000 1.9 @@ -8,15 +8,16 @@ # Based on installer.pl, which was created by Sean Dague, and contributed to # by Michael Chase-Salerno, Dann Frazier, and Brian Finley. # -# 2003.12.08 Brian Elliott Finley <fi...@mc...> -# - Specify specific packages to install, rather than classes of install. -# The variation of install combinations we now have caused me to try -# this new method of install for this script. -# 2004.01.31 Brian Elliott Finley <fi...@mc...> -# - Added dependency checking -# - Auto-add dependencies if in package list -# - Check integrity of each existing rpm before deciding not to download -# +# 2003.12.08 Brian Elliott Finley +# - Specify specific packages to install, rather than classes of install. +# The variation of install combinations we now have caused me to try +# this new method of install for this script. +# 2004.01.31 Brian Elliott Finley +# - Added dependency checking +# - Auto-add dependencies if in package list +# - Check integrity of each existing rpm before deciding not to download +# 2004.06.29 Brian Elliott Finley +# - if --list and --download-only, just --list # # Run "./install --help" for description. # @@ -101,12 +102,6 @@ usage(1); } -if($opt{download_only} && !$ARGV[0]) { - print "ERROR: Must specify one or more packages with --download-only.\n"; - print " Try --list to see available packages.\n\n"; - usage(1); -} - # create download dir if it doesn't exist if(!-d $opt{directory}) { mkdir $opt{directory}, 0775; } @@ -142,6 +137,12 @@ exit 0; } +if($opt{download_only} && !$ARGV[0]) { + print "ERROR: Must specify one or more packages with --download-only.\n"; + print " Try --list to see available packages.\n\n"; + usage(1); +} + if($opt{download_only}) { &download_packages; } else { |