[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:13 UTC 2011


The following commit has been merged in the master branch:
commit 43aa49a3598397aaf72b641952cef2fd5c99d654
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Oct 4 21:50:08 2011 +0200

    when searching thru the bugs list, return a Bugreport instance instead of the bug number; thanks to Olivier Berger for reopening the bug; hopefully completely Closes: #640196

diff --git a/debian/changelog b/debian/changelog
index 64c024a..448d8bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,8 +19,12 @@ reportbug (6.2.2) UNRELEASED; urgency=low
     - don't add the bug report guidance template if the package is a special one
       (like wnpp, ftp.d.o and release.d.o); thanks to Arno Töll for the report;
       Closes: #643785
+  * reportbug/ui/text_ui.py
+    - when searching thru the bugs list, return a Bugreport instance instead of
+      the bug number; thanks to Olivier Berger for reopening the bug; hopefully
+      completely Closes: #640196
 
- -- Sandro Tosi <morph at debian.org>  Tue, 04 Oct 2011 21:16:18 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 04 Oct 2011 21:47:32 +0200
 
 reportbug (6.2.1) unstable; urgency=low
 
diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 65570bd..7e3a618 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -817,6 +817,8 @@ def search_bugs(hierarchyfull, bts, queryonly, mirrors,
     lastpage = []
     digits = len(str(len(bugs)))
     linefmt = '  %'+str(digits)+'d) %s\n'
+    # XXX: it's kinda non-sense to replicate all this code here!!! it's the same
+    # as of browse_report!
     while category:
         scount = scount + 1
         catname, reports = category[0:2]
@@ -913,7 +915,7 @@ def search_bugs(hierarchyfull, 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