[svn] r4874 - trunk/tools/yam

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Sat Nov 11 03:55:22 CET 2006


Author: dag
Date: 2006-11-11 03:55:21 +0100 (Sat, 11 Nov 2006)
New Revision: 4874

Modified:
   trunk/tools/yam/rhnget
Log:
Small fix

Modified: trunk/tools/yam/rhnget
===================================================================
--- trunk/tools/yam/rhnget	2006-11-10 12:24:51 UTC (rev 4873)
+++ trunk/tools/yam/rhnget	2006-11-11 02:55:21 UTC (rev 4874)
@@ -245,9 +245,10 @@
 			cfg['serverURL'] = 'https://%s/XMLRPC' % rhnserver
 
 	### Get proxy information from environment and set up2date config accordingly
-	if os.environ['http_proxy'] and rhnscheme == 'rhn':
+	proxy = None
+	if os.environ.has_key('http_proxy') and rhnscheme == 'rhn':
 		t, proxy, t, t, t, t = urlparse.urlparse(os.environ['http_proxy'])
-	elif os.environ['https_proxy'] and rhnscheme == 'rhns':
+	elif os.environ.has_key('https_proxy') and rhnscheme == 'rhns':
 		t, proxy, t, t, t, t = urlparse.urlparse(os.environ['https_proxy'])
 	if proxy:
 		cfg['enableProxy'] = 1




More information about the commits mailing list