=== modified file 'bugHelper/commandLine.py' --- bugHelper/commandLine.py 2007-03-16 13:16:43 +0000 +++ bugHelper/commandLine.py 2007-03-28 16:52:48 +0000 @@ -36,6 +36,7 @@ clues) [--format=] format the output, default is plain [-c] case sensitive (off by default) + [-C] also look at closed bugs [-U] also consider upstream bugs (only in combination with -p [-H] use all clue files, if a bug has no @@ -71,6 +72,9 @@ dest="case_sensitive", metavar="Case Sensitive", help="case sensitive") + parser.add_option("-C", "--closed", action="store_true", + dest="closed_bugs", metavar="closed bugs", + help="also look at closed bugs") parser.add_option("-U", "--upstream", action="store_true", dest="upstream", metavar="upstream", help="also consider upstream bugs") === modified file 'bughelper' --- bughelper 2007-03-15 18:37:35 +0000 +++ bughelper 2007-03-28 19:43:54 +0000 @@ -61,9 +61,17 @@ sys.exit(1) if cl.options.sourcepackage: - cl.options.url = \ - "https://bugs.launchpad.net/distros/ubuntu/+source/%s/+bugs%s" % \ - (cl.options.sourcepackage,tags) + if not cl.options.closed_bugs: + cl.options.url = \ + "https://bugs.launchpad.net/distros/ubuntu/+source/%s/+bugs%s" % \ + (cl.options.sourcepackage,tags) + else: + if cl.options.tag: + cl.options.url = \ + "https://bugs.launchpad.net/distros/ubuntu/+source/%s/+bugs%s&field.status:list=Unconfirmed&field.status:list=Needs+Info&field.status:list=Rejected&field.status:list=Confirmed&field.status:list=In+Progress&field.status:list=Fix+Committed&field.status:list=Fix+Released" % (cl.options.sourcepackage,tags) + else: + cl.options.url = \ + "https://bugs.launchpad.net/distros/ubuntu/+source/%s/+bugs?field.status:list=Unconfirmed&field.status:list=Needs+Info&field.status:list=Rejected&field.status:list=Confirmed&field.status:list=In+Progress&field.status:list=Fix+Committed&field.status:list=Fix+Released" % (cl.options.sourcepackage) bl = BugList(cl.options).bugs