[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.8-16-gd08173f

Sandro Tosi morph at debian.org
Sat Nov 21 22:24:05 UTC 2009


The following commit has been merged in the master branch:
commit e04e4cebabe0c24b512a769f273887409514b5c2
Author: Sandro Tosi <morph at debian.org>
Date:   Sat Nov 21 23:12:33 2009 +0100

    small changes to --bugreport option code

diff --git a/bin/reportbug b/bin/reportbug
index 7c52978..ba3fe78 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -36,7 +36,6 @@ import commands
 import rfc822
 import gettext
 import textwrap
-import re
 
 from reportbug import utils
 from reportbug import (
@@ -1005,6 +1004,7 @@ class UI(object):
         pgp_addr = self.options.keyid
         bugnumber = self.options.bugnumber
 
+        # if user specified a bug number on the command-line, don't query BTS
         if bugnumber:
             dontquery = True
 
@@ -1201,6 +1201,7 @@ class UI(object):
         status = None
 
         exinfo = None
+        # If user specified a bug number on the command line
         try:
             if bugnumber:
                 reportre = re.compile(r'^#?(\d+)$')
@@ -1217,9 +1218,9 @@ class UI(object):
                         dontquery = False
                         bugnumber = False
                 else:
-                    efail("The report bug number you have provided does not match usual pattern.\n")
+                    efail("The report bug number provided seems to not exist.\n")
         except NoBugs:
-            efail('No bug reports found.\n')
+            efail('No such bug report.\n')
         except NoReport:
             efail('Exiting.\n')
 
@@ -1675,6 +1676,7 @@ For more details, please see: http://www.debian.org/devel/wnpp/''')
                     subject_ok = True
                 else:
                     ewrite("Providing a subject is mandatory.\n")
+
             # Check to make sure the bug still exists to avoid auto-reopens
             if subject and pkgversion:
                 if not ui.yes_no('Does this bug still exist in version %s '
diff --git a/man/reportbug.1 b/man/reportbug.1
index a16f8a6..50e60e4 100644
--- a/man/reportbug.1
+++ b/man/reportbug.1
@@ -271,7 +271,8 @@ and
 mail systems) to edit and send it.
 .TP
 .B \-N, \-\-bugnumber
-Access only the bug report identified by its report number.
+Run reportbug against the specified bug report, useful when following-up a bug
+and its number is already known.
 .TP
 .B \-o FILE, \-\-output=FILE
 Instead of sending an email, redirect it to the specified filename.

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list