check-mirrors check-mirrors.py,1.28,1.29
Michael Patrick McGrath (mmcgrath)
fedora-extras-commits at redhat.com
Mon Aug 7 04:37:51 UTC 2006
Author: mmcgrath
Update of /cvs/fedora/check-mirrors
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3367
Modified Files:
check-mirrors.py
Log Message:
[global] section in config no longer treated as a mirror
Index: check-mirrors.py
===================================================================
RCS file: /cvs/fedora/check-mirrors/check-mirrors.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- check-mirrors.py 7 Aug 2006 04:22:48 -0000 1.28
+++ check-mirrors.py 7 Aug 2006 04:37:49 -0000 1.29
@@ -406,13 +406,16 @@
gi = GeoIP.new(GeoIP.GEOIP_STANDARD)
# setup our database
for s in sections:
- if s.mirrorid == 'global':
+ if s.mirrorid.lower() == 'global':
DB = RepoDB(s.db)
# grab the canonical mirrors info
for s in sections:
mirrors = []
+ if s.mirrorid.lower() == 'global':
+ continue
+
ug = URLGrabber(timeout=s.timeout)
s.populate_mirrorlist(ug)
if len(s.mirrorlist) < 1:
More information about the scm-commits
mailing list