[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.5-5-gdf777ff
Sandro Tosi
morph at debian.org
Fri Jul 3 11:28:35 UTC 2009
The following commit has been merged in the master branch:
commit 2e6c9276a7ed24e22ce2687064f3892d866576fa
Author: Carl Chenet <carl.chenet at ohmytux.com>
Date: Sat Jun 27 15:45:14 2009 +0200
querybts mbox option manages several bugs
diff --git a/bin/querybts b/bin/querybts
index 67d0249..5f66f21 100755
--- a/bin/querybts
+++ b/bin/querybts
@@ -153,18 +153,19 @@ def main():
return
if mbox:
- m = re.match('^#?(\d+)$', args[0])
- if not m:
- print >> sys.stderr, "You must specify a bug number when using the --mbox option."
- sys.exit(1)
- num = int(m.group(1))
- url = debianbts.get_report_url(system, num, archived, mbox=True)
- try:
- report = urlutils.open_url(url)
- sys.stdout.write(report.read())
- except urlutils.urllib2.URLError, ex:
- print >> sys.stderr, "Error while accessing mbox report (%s)." % ex
- sys.exit(1)
+ for bugnum in args:
+ m = re.match('^#?(\d+)$', bugnum)
+ if not m:
+ print >> sys.stderr, "You must specify a bug number when using the --mbox option."
+ sys.exit(1)
+ num = int(m.group(1))
+ url = debianbts.get_report_url(system, num, archived, mbox=True)
+ try:
+ report = urlutils.open_url(url)
+ sys.stdout.write(report.read())
+ except urlutils.urllib2.URLError, ex:
+ print >> sys.stderr, "Error while accessing mbox report (%s)." % ex
+ sys.exit(1)
return
if interface:
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list