[Lunar-commits] r23519 - in lunar/trunk: sbin usr/share/man/man8

Auke Kok sofar at lunar-linux.org
Tue Mar 6 20:20:32 CET 2007


Author: sofar
Date: 2007-03-06 20:20:31 +0100 (Tue, 06 Mar 2007)
New Revision: 23519

Modified:
   lunar/trunk/sbin/lget
   lunar/trunk/usr/share/man/man8/lget.8
Log:
Add lget -w functionality just like lin, update man page


Modified: lunar/trunk/sbin/lget
===================================================================
--- lunar/trunk/sbin/lget	2007-03-06 16:29:56 UTC (rev 23518)
+++ lunar/trunk/sbin/lget	2007-03-06 19:20:31 UTC (rev 23519)
@@ -45,6 +45,8 @@
    -u | --url     URL           Specify an alternate download URL
    -v | --verbose               Increases the level of message output
    -V | --Version               Select specific Version of module to install
+   -w | --want version          Try to download a different version that is
+                                not in moonbase
 EOF
 
   exit  1
@@ -84,7 +86,7 @@
 
 . /etc/lunar/config
 
-GETOPT_ARGS=$(getopt -q -n lget -o "adf:hu:vV:" -l "all,debug,from:,help,url:,verbose,Version:" -- "$@")
+GETOPT_ARGS=$(getopt -q -n lget -o "adf:hu:vV:w:" -l "all,debug,from:,help,url:,verbose,Version:want:" -- "$@")
 
 if [ -z "$?" ] ; then
   help | view_file
@@ -103,6 +105,7 @@
       -h|--help    ) help ;                                     exit  1 ;;
       -u|--url     ) export BASE_URL="$2" ;                     shift 2 ;;
       -v|--verbose ) export VERBOSE="on" ;                      shift   ;;
+      -w|--want    ) export WANT_VERSION=$2 ;                   shift 2 ;;
       --) shift ; break ;;
       *) help ; exit ;;
     esac

Modified: lunar/trunk/usr/share/man/man8/lget.8
===================================================================
--- lunar/trunk/usr/share/man/man8/lget.8	2007-03-06 16:29:56 UTC (rev 23518)
+++ lunar/trunk/usr/share/man/man8/lget.8	2007-03-06 19:20:31 UTC (rev 23519)
@@ -9,7 +9,7 @@
 .PP
 .B lget -a|--all
 .PP
-.B lget -d|--debug|-f|--from|-u|--url|-v|--verbose 
+.B lget -d|--debug|-f|--from|-u|--url|-v|--verbose|-w|--want
 module_1 module_2
 .SH COPYRIGHT
 .if n lget(8) is Copyright (C) 2002-2003 Terry Chan with portions copyrighted by previous authors 2001-2002
@@ -41,8 +41,7 @@
 .PP
 Enables debug messages, very useful when emailing a bug report.
 .TP
-.B lget
--f|--from path/dir
+.B lget -f|--from path/dir
 .PP
 This specifies a different
 .I /var/spool/lunar
@@ -52,12 +51,17 @@
 .PP
 Outputs short help.
 .TP
-.B lget
--u|--url URL module_1
+.B lget -u|--url URL module_1
 .PP
 This tries to download the specified module from a different location. This is
 useful if the original link is down.
 .TP
+.B lget -w|--want version
+.PP
+Attempt to download version version of the module by substituting the current
+version of the module with the wanted version. May fail if the package requires
+more than one file download, or other reasons.
+.TP
 .B lget -v|--verbose
 .PP
 Increases the level of message output



More information about the Lunar-commits mailing list