check-mirrors check-mirrors.py, 1.23, 1.24 return-mirrorlist.py, 1.9, 1.10
Michael Patrick McGrath (mmcgrath)
fedora-extras-commits at redhat.com
Thu Aug 3 01:39:33 UTC 2006
- Previous message: rpms/perl-Config-Record/devel .cvsignore, 1.2, 1.3 perl-Config-Record.spec, 1.3, 1.4 sources, 1.2, 1.3
- Next message: check-mirrors check-mirrors.py, 1.24, 1.25 return-mirrorlist.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mmcgrath
Update of /cvs/fedora/check-mirrors
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24684
Modified Files:
check-mirrors.py return-mirrorlist.py
Log Message:
return-mirrorlist.py now only prints good mirrors
Index: check-mirrors.py
===================================================================
RCS file: /cvs/fedora/check-mirrors/check-mirrors.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- check-mirrors.py 2 Aug 2006 22:03:46 -0000 1.23
+++ check-mirrors.py 3 Aug 2006 01:39:31 -0000 1.24
@@ -27,7 +27,7 @@
# - pull mirrors from the database instead of fedora.redhat.com ?
-debug = False
+debug = True
__revision__ = '$Id$'
CONFIG = '/etc/check-mirrors.conf'
Index: return-mirrorlist.py
===================================================================
RCS file: /cvs/fedora/check-mirrors/return-mirrorlist.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- return-mirrorlist.py 2 Aug 2006 22:03:46 -0000 1.9
+++ return-mirrorlist.py 3 Aug 2006 01:39:31 -0000 1.10
@@ -18,8 +18,9 @@
# TODO:
# - maybe a macro of certain country codes expand out to multiple countries
# note: - maintaining the abovelist will become a royal bitch.
+# - Buhhh, only display good mirrors
-debug = False
+debug = True
# prettier errors
print 'Content-type: text/plain'
@@ -73,7 +74,7 @@
else:
countrysql = "and country='%s'" % country
try:
- self.dbcursor.execute('SELECT url FROM mirrors where repo="%s" and arch="%s" %s;' % (repo, arch, countrysql))
+ self.dbcursor.execute('SELECT url FROM mirrors where failures=0 and repo="%s" and arch="%s" %s;' % (repo, arch, countrysql))
except sqlite.Error, err:
print "%s" % err
- Previous message: rpms/perl-Config-Record/devel .cvsignore, 1.2, 1.3 perl-Config-Record.spec, 1.3, 1.4 sources, 1.2, 1.3
- Next message: check-mirrors check-mirrors.py, 1.24, 1.25 return-mirrorlist.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list