[yum-commits] Branch 'yum-3_2_X' - yum/yumRepo.py
Tim Lauridsen
timlau at osuosl.org
Mon Mar 30 09:58:28 UTC 2009
yum/yumRepo.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit d407d8098fd7f064d1eb1ef5ceaf1e6e7fac61be
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Mon Mar 30 11:58:18 2009 +0200
fix Traceback if mirrorlist is read from the cache, then the url var is not defined
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 7b7f9f2..cb6c553 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1566,6 +1566,7 @@ class YumRepository(Repository, config.RepoConf):
if self.withinCacheAge(self.mirrorlist_file, self.mirrorlist_expire):
cacheok = True
fo = open(self.mirrorlist_file, 'r')
+ url = 'file://' + self.mirrorlist_file # just to keep self._readMirrorList(fo,url) happy
else:
url = self.mirrorlist
scheme = urlparse.urlparse(url)[0]
More information about the Yum-commits
mailing list