[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-161-gc3545fb

Sandro Tosi morph at debian.org
Wed Jan 5 01:16:16 UTC 2011


The following commit has been merged in the master branch:
commit c3545fb9b67178f3c4da1e02d27605a637851a0e
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Jan 5 02:14:34 2011 +0100

    after filtering thru bugs, don't ask to choose one when there is only one bug left; thanks to Braun Gábor for the report; Closes: #600270

diff --git a/debian/changelog b/debian/changelog
index 44bef5f..c8a9e0e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,8 +47,11 @@ reportbug (4.99.0) UNRELEASED; urgency=low
   * debian/desktop
     - updated with Russian translations; thanks to Alexander Sashanov for the
       report and patch; Closes: #608889
+  * reportbug/ui/text_ui.py
+    - after filtering thru bugs, don't ask to choose one when there is only one
+      bug left; thanks to Braun Gábor for the report; Closes: #600270
 
- -- Sandro Tosi <morph at debian.org>  Wed, 05 Jan 2011 01:38:08 +0100
+ -- Sandro Tosi <morph at debian.org>  Wed, 05 Jan 2011 02:13:11 +0100
 
 reportbug (4.12.6) unstable; urgency=low
 
diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index b54c3af..59f8d37 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -920,10 +920,13 @@ def search_bugs(hierarchyfull, bts, queryonly, mirrors,
                         if queryonly:
                             return
 
-                        number = our_raw_input(
-                            'Enter the number of the bug report '
-                            'you want to give more info on,\n'
-                            'or press ENTER to exit: #', allowed)
+                        if len(bugs) == 1:
+                            number = '1'
+                        else:
+                            number = our_raw_input(
+                                'Enter the number of the bug report '
+                                'you want to give more info on,\n'
+                                'or press ENTER to exit: #', allowed)
                         while number and number[0] == '#':
                             number=number[1:]
                         if number:

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list