Fix long argument processing to work correctly. (Bug #192345)
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 12 Sep 2007 23:02:07 +0000 (23:02 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 12 Sep 2007 23:02:07 +0000 (23:02 -0000)
svn path=/; revision=433

trunk/ChangeLog
trunk/src/eclean/eclean

index e6385a7423a1bd47ba50503828ca5109e08df865..2e174fb9f9c8fb4e6c169a0d3d3cbaabc052a477 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-12: Paul Varner <fuzzyray@gentoo.org>
+       * eclean: Fix processing of the long arguments to work correctly. (Bug
+       #192345)
+
 2007-08-08: Paul Varner <fuzzyray@gentoo.org>
        * revdep-rebuild: Fix progress bar to only update when there is a
        change (Bug #186945)
index 1ee2fba75e78c55f9b988b05bda417947d3c80f0..4fdec10fcb9997e4fe3788bd4138ef2d75c26e39 100644 (file)
@@ -334,12 +334,12 @@ def parseArgs(myoptions={}):
 
        # here are the different allowed command line options (getopt args)
        getopt_options = {'short':{}, 'long':{}}
-       getopt_options['short']['global'] = "Cdipqe::t::nhV"
+       getopt_options['short']['global'] = "Cdipqe:t:nhV"
        getopt_options['long']['global'] = ["nocolor", "destructive", \
-                       "interactive", "pretend", "quiet", "exclude-file", "time-limit", \
+                       "interactive", "pretend", "quiet", "exclude-file=", "time-limit=", \
                        "package-names", "help", "version"]
-       getopt_options['short']['distfiles'] = "fs::"
-       getopt_options['long']['distfiles'] = ["fetch-restricted", "size-limit"]
+       getopt_options['short']['distfiles'] = "fs:"
+       getopt_options['long']['distfiles'] = ["fetch-restricted", "size-limit="]
        getopt_options['short']['packages'] = ""
        getopt_options['long']['packages'] = [""]
        # set default options, except 'nocolor', which is set in main()