pld-ftp-admin: scripts/gen-indexes.py getopt fixed

arekm arekm at pld-linux.org
Sat Jan 15 19:02:39 CET 2011


Author: arekm                        Date: Sat Jan 15 18:02:39 2011 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
getopt fixed

---- Files affected:
pld-ftp-admin/scripts:
   gen-indexes.py (1.31 -> 1.32) 

---- Diffs:

================================================================
Index: pld-ftp-admin/scripts/gen-indexes.py
diff -u pld-ftp-admin/scripts/gen-indexes.py:1.31 pld-ftp-admin/scripts/gen-indexes.py:1.32
--- pld-ftp-admin/scripts/gen-indexes.py:1.31	Sat Jan 15 17:19:50 2011
+++ pld-ftp-admin/scripts/gen-indexes.py	Sat Jan 15 19:02:34 2011
@@ -10,10 +10,10 @@
 import ftpio
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], None, ["nopoldek", "noyum", "norpmrepo", "poldek", "yum", "rpmrepo"])
+    opts, args = getopt.getopt(sys.argv[1:], None, ["quiet", "nopoldek", "noyum", "norpmrepo", "poldek", "yum", "rpmrepo"])
 except getopt.GetoptError:
     print >>sys.stderr, "ERR: not enough parameters given"
-    print >>sys.stderr, "gen-indexes.py [--[no]poldek] [--[no]yum] [--[no]rpmrepo] tree [tree2...]"
+    print >>sys.stderr, "gen-indexes.py [--quiet] [--[no]poldek] [--[no]yum] [--[no]rpmrepo] tree [tree2...]"
     sys.exit(1)
 
 do_poldek = True
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/scripts/gen-indexes.py?r1=1.31&r2=1.32&f=u



More information about the pld-cvs-commit mailing list