[yum-cvs] yum/yum repos.py,1.63,1.64
Seth Vidal
skvidal at login.linux.duke.edu
Sat Feb 19 22:28:25 UTC 2005
- Previous message: [yum-cvs] yum/yum repos.py,1.59.2.1,1.59.2.2
- Next message: [yum-cvs] yum/urlgrabber LICENSE, 1.1, 1.1.2.1 README, 1.1, 1.1.2.1 __init__.py, 1.7, 1.7.2.1 byterange.py, 1.6.2.1, 1.6.2.2 grabber.py, 1.10, 1.10.2.1 keepalive.py, 1.6, 1.6.2.1 mirror.py, 1.6, 1.6.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv19647/yum
Modified Files:
repos.py
Log Message:
proxy fixes
Index: repos.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/repos.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- repos.py 17 Feb 2005 07:16:46 -0000 1.63
+++ repos.py 19 Feb 2005 22:28:23 -0000 1.64
@@ -368,17 +368,20 @@
return
self.proxy_dict = {} # zap it
- if self.proxy is not None or self.proxy is not '_none_':
+ proxy_string = None
+ if self.proxy not in [None, '_none_']:
proxy_string = '%s' % self.proxy
if self.proxy_username is not None:
proxy_string = '%s@%s' % (self.proxy_username, self.proxy)
if self.proxy_password is not None:
proxy_string = '%s:%s@%s' % (self.proxy_username,
self.proxy_password, self.proxy)
+
+ if proxy_string is not None:
self.proxy_dict['http'] = proxy_string
self.proxy_dict['https'] = proxy_string
self.proxy_dict['ftp'] = proxy_string
-
+
def setupGrab(self):
"""sets up the grabber functions with the already stocked in urls for
the mirror groups"""
- Previous message: [yum-cvs] yum/yum repos.py,1.59.2.1,1.59.2.2
- Next message: [yum-cvs] yum/urlgrabber LICENSE, 1.1, 1.1.2.1 README, 1.1, 1.1.2.1 __init__.py, 1.7, 1.7.2.1 byterange.py, 1.6.2.1, 1.6.2.2 grabber.py, 1.10, 1.10.2.1 keepalive.py, 1.6, 1.6.2.1 mirror.py, 1.6, 1.6.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list