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

Bug #409352 reported by Brent Fox on 2009-08-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-kickstart (Ubuntu)
Colin Watson

Bug Description

Binary package hint: system-config-kickstart

Description: Ubuntu karmic (development branch)
Release: 9.10

  Installed: 2.5.20-0ubuntu19
  Candidate: 2.5.20-0ubuntu19
  Version table:
 *** 2.5.20-0ubuntu19 0
        500 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 "./", line 54, in <module>
    opts, file = getopt.getopt(sys.argv[1:], "g:h", ["generate=", "help"])
  File "/usr/lib/python2.6/", line 89, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.6/", 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.

Colin Watson (cjwatson) on 2009-08-11
Changed in system-config-kickstart (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Committed
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 (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  Edit
Everyone can see this information.

Other bug subscribers