[PATCH] warn users for options not available

Carl Chenet carl.chenet at ohmytux.com
Sat Jul 4 14:49:33 UTC 2009


---
 bin/querybts |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/bin/querybts b/bin/querybts
index 5f66f21..03cae81 100755
--- a/bin/querybts
+++ b/bin/querybts
@@ -198,13 +198,19 @@ def main():
             match = reportre.match(package)
             if match:
                 report = int(match.group(1))
-                return ui.show_report(report, system, mirrors,
-                                      http_proxy, queryonly=True,
-                                      title=VERSION,
-                                      archived=archived)
-        ui.handle_bts_query(package, system, mirrors, http_proxy,
-                            queryonly=True, title=VERSION, archived=archived,
-                            source=source)
+                while 1 :
+                    retvalue = ui.show_report(report, system, mirrors,
+                                          http_proxy, queryonly=True,
+                                          title=VERSION,
+                                          archived=archived)
+                    ui.long_message('This option is not available while using querybts alone.\n')
+
+        while 1:
+            ui.handle_bts_query(package, system, mirrors, http_proxy,
+                                queryonly=True, title=VERSION, archived=archived,
+                                source=source)
+            ui.long_message('This option is not available while using querybts alone.\n')
+
     except NoPackage:
         ui.long_message('Package appears not to exist in the BTS.\n')
     except NoBugs:
-- 
1.5.4.3


--=-qs3sYBK41HWHiWnE9/jO--






More information about the Reportbug-maint mailing list