[yum-commits] yum/yumRepo.py

zpavlas at osuosl.org zpavlas at osuosl.org
Tue Aug 7 08:42:13 UTC 2012


 yum/yumRepo.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ac1802f413c0ba76a909d017ee2ee6fd9ea89884
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Tue Aug 7 10:30:37 2012 +0200

    _readMirrorList: No whitespaces in mirror URLs. BZ 845765.

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 2fa7e64..cd49e56 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1754,7 +1754,7 @@ Insufficient space in download directory %s
                 print "Could not read mirrorlist %s, error was \n%s" %(url, e)
                 content = []
             for line in content:
-                if re.match('\s*(#|$)', line):
+                if not re.match('\w+://\S+\s*$', line):
                     continue
                 mirror = line.rstrip() # no more trailing \n's
                 mirror = mirror.replace('$ARCH', '$BASEARCH')


More information about the Yum-commits mailing list