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

Sandro Tosi morph at debian.org
Thu Mar 11 21:22:14 UTC 2010


The following commit has been merged in the master branch:
commit ca7ff23c34b90587dba04addc4777ca84eb69700
Author: Carl Chenet <carl.chenet at ohmytux.com>
Date:   Tue Mar 9 18:02:41 2010 +0100

    dont ask ui question if only one available

diff --git a/bin/reportbug b/bin/reportbug
index d0f83f5..3f1c6f8 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -516,9 +516,12 @@ def offer_configuration(options):
                    order=utils.MODELIST)
 
     if options.configure or not options.interface:
-        interface = ui.menu(
-            'Please choose the default interface for reportbug.', AVAILABLE_UIS,
-            'Select interface: ', options.interface, order=['text'])
+        if len(AVAILABLE_UIS) == 1:
+            interface = 'text'
+        else:
+            interface = ui.menu(
+                'Please choose the default interface for reportbug.', AVAILABLE_UIS,
+                'Select interface: ', options.interface, order=['text'])
     else:
         interface = options.interface
 

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list