~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/bugzilla-import.py

  • Committer: James Henstridge
  • Date: 2005-11-12 04:52:33 UTC
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: james.henstridge@canonical.com-20051112045233-314f4da582427db8
By default, import bugs with all statuses

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    parser.add_option('--status', metavar='STATUS,...', action='store',
41
41
                      help='Only import bugs with the given status',
42
42
                      type='string', dest='status',
43
 
                      default='UNCONFIRMED,NEW,ASSIGNED,REOPENED,NEEDINFO,'
44
 
                              'UPSTREAM,PENDINGUPLOAD')
 
43
                      default=None)
45
44
 
46
45
    # MySQL connection details
47
46
    parser.add_option('-d', '--dbname', metavar='DB', action='store',
61
60
    logger_options(parser, logging.INFO)
62
61
    
63
62
    options, args = parser.parse_args(argv[1:])
64
 
    options.status = options.status.split(',')
 
63
    if options.status is not None:
 
64
        options.status = options.status.split(',')
 
65
    else:
 
66
        options.status = []
65
67
 
66
68
    logger(options, 'canonical.launchpad.scripts.bugzilla')
67
69