system-config-kickstart: Traceback when using --generate without a file name

Bug #409352 reported by Brent Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-kickstart (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Binary package hint: system-config-kickstart

Description: Ubuntu karmic (development branch)
Release: 9.10

system-config-kickstart:
  Installed: 2.5.20-0ubuntu19
  Candidate: 2.5.20-0ubuntu19
  Version table:
 *** 2.5.20-0ubuntu19 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

If you run system-config-kickstart from the command line using the --generate option without specifying a filename, you get the following traceback:

Traceback (most recent call last):
  File "./system-config-kickstart.py", line 54, in <module>
    opts, file = getopt.getopt(sys.argv[1:], "g:h", ["generate=", "help"])
  File "/usr/lib/python2.6/getopt.py", line 89, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.6/getopt.py", line 157, in do_longs
    raise GetoptError('option --%s requires argument' % opt, opt)
getopt.GetoptError: option --generate requires argument

I'm attaching a patch which should handle this more gracefully.

Revision history for this message
Brent Fox (brent-s-fox) wrote :
Colin Watson (cjwatson)
Changed in system-config-kickstart (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-kickstart - 2.5.20-0ubuntu20

---------------
system-config-kickstart (2.5.20-0ubuntu20) karmic; urgency=low

  [ Brent Fox ]
  * Fix GtkSpinButton warnings (LP: #409261).
  * Hook up event handlers after calling self.toplevel.show() (LP: #409270).
  * Print usage message on getopt errors (LP: #409352).
  * Add ext4 to supported filesystem types (LP: #409368).
  * Print a proper error if file opens fail (LP: #409554).

 -- Colin Watson <email address hidden> Tue, 11 Aug 2009 14:19:34 +0100

Changed in system-config-kickstart (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.