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

Sandro Tosi morph at debian.org
Sat Sep 10 21:15:07 UTC 2011


The following commit has been merged in the master branch:
commit b1a09279ce9d06f8810f37aed016147e8f100c54
Author: Sandro Tosi <morph at debian.org>
Date:   Sat Sep 10 22:52:06 2011 +0200

    fix a crash after the bugs list, when selecting 'y' and then entering the item number; thanks to Jakub Wilki for the report; Closes: #640196
    
    The problem was the return type was an integer instead of a Bugreport instance

diff --git a/debian/changelog b/debian/changelog
index d1de8a5..3783420 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,11 @@ reportbug (6.3) UNRELEASED; urgency=low
   * reportbug/utils.py
     - fix a crash when generating dependencies tables for long package name;
       thanks to Wouter Van Hemel for the report; Closes: #640512
+  * reportbug/ui/text_ui.py
+    - fix a crash after the bugs list, when selecting 'y' and then entering the
+      item number; thanks to Jakub Wilki for the report; Closes: #640196
 
- -- Sandro Tosi <morph at debian.org>  Thu, 08 Sep 2011 20:16:06 +0200
+ -- Sandro Tosi <morph at debian.org>  Sat, 10 Sep 2011 22:49:51 +0200
 
 reportbug (6.2) unstable; urgency=low
 
diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 5b9ebd0..35c34b8 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -693,7 +693,7 @@ def browse_bugs(hierarchy, count, bugs, bts, queryonly, mirrors,
                                 number = int(number)
                                 if number not in bugs and 1 <= number <= len(bugs):
                                     number = bugs[number-1]
-                                return number
+                                return debbugs.get_report(number, timeout)[0]
                             except ValueError:
                                 ewrite('Invalid report number: %s\n',
                                        number)

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list