[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-61-g47d5a62

Sandro Tosi morph at debian.org
Tue Oct 4 21:14:10 UTC 2011


The following commit has been merged in the master branch:
commit 68c08b17eb8f039fe729993866566793830f6212
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Oct 4 21:02:38 2011 +0200

    fix a crash when using -N nnnnnn and at the last menu answer 'Show other bug reports (return to bug listing).'; thanks to Ritesh Raj Sarraf for the report; Closes: #642939

diff --git a/bin/reportbug b/bin/reportbug
index 1301f9e..c23d322 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1351,11 +1351,13 @@ class UI(object):
                                           title=VERSION,
                                           archived=False,
                                           mbox_reader_cmd=self.options.mbox_reader_cmd)
-                    package = exinfo.package or exinfo.source
-                    # XXX: can this ever happen?
-                    if not exinfo:
-                        dontquery = False
-                        bugnumber = False
+                    # When asking to re-display the bugs list, None is returned
+                    # given we're in the part of code that's executed when the
+                    # user pass a bug number on the cli, so we'll exit
+                    if exinfo is None:
+                        raise NoReport
+                    else:
+                        package = exinfo.package or exinfo.source
                 else:
                     efail("The report bug number provided seems to not exist.\n")
         except NoBugs:
diff --git a/debian/changelog b/debian/changelog
index 91748b0..b57963d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,8 +11,12 @@ reportbug (6.2.2) UNRELEASED; urgency=low
   * debian/docs
     - don't install TODO file, it's internal only; thanks to Tshepang
       Lekhonkhobe for the report; Closes: #643320
+  * bin/reportbug
+    - fix a crash when using -N nnnnnn and at the last menu answer 'Show other
+      bug reports (return to bug listing).'; thanks to Ritesh Raj Sarraf for the
+      report; Closes: #642939
 
- -- Sandro Tosi <morph at debian.org>  Sun, 02 Oct 2011 22:17:24 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 04 Oct 2011 21:01:19 +0200
 
 reportbug (6.2.1) unstable; urgency=low
 

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list