[PATCH] configure mode asks for proxy address

Carl Chenet carl.chenet at ohmytux.com
Thu Jun 11 22:25:27 UTC 2009


---
 bin/reportbug |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/bin/reportbug b/bin/reportbug
index 36d6837..5c31646 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -528,6 +528,15 @@ def offer_configuration(options):
              'don\'t need a user name.' % smtphost), empty_ok=True, force_prompt=True)
     else:
         smtpuser = ''
+
+    http_proxy = ui.get_string(
+       'Please enter the name of your proxy server.  It should only '
+       'use this parameter if you are behind a firewall. '
+       'The PROXY argument should be  formatted as a valid HTTP URL,'
+       ' including (if necessary) a port number;'
+       ' for example, http://192.168.1.1:3128/. '
+       'Just press ENTER if you don\'t have one or don\'t know.',
+       empty_ok=True, force_prompt=True)
     
     if os.path.exists(utils.USERFILE):
         try:
@@ -591,6 +600,10 @@ def offer_configuration(options):
             print >> fp, '#smtpuser "my username here"'
             print >> fp, '#smtppasswd "my password here"'
 
+    if http_proxy:
+        print >> fp, '# Your proxy server address'
+        print >> fp, 'http_proxy "%s"' % http_proxy
+
     if stupidmode:
         print >> fp, '# Disable fallback mode by commenting out the following:'
         print >> fp, 'no-cc'
-- 
1.5.4.3


--=-IosQ1sZX2B4oavZjit5o--






More information about the Reportbug-maint mailing list