>From affc3d2f1627e2b9c21feb8b6d9fe392c976ad01 Mon Sep 17 00:00:00 2001
From: Carl Chenet <carl.chenet@ohmytux.com>
Date: Sat, 4 Jul 2009 16:49:33 +0200
Subject: [PATCH] warn users for options not available

---
 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

