check-mirrors check-mirrors.py,1.29,1.30

Michael Patrick McGrath (mmcgrath) fedora-extras-commits at redhat.com
Fri Aug 25 00:53:45 UTC 2006


Author: mmcgrath

Update of /cvs/fedora/check-mirrors
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26711

Modified Files:
	check-mirrors.py 
Log Message:
Many changes.

Created a mirrors class seperate from the database class.

Many more stats.

Needs proper user sanatation for the top num in terms of availability.




Index: check-mirrors.py
===================================================================
RCS file: /cvs/fedora/check-mirrors/check-mirrors.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- check-mirrors.py	7 Aug 2006 04:37:49 -0000	1.29
+++ check-mirrors.py	25 Aug 2006 00:53:42 -0000	1.30
@@ -479,6 +479,7 @@
                 if not goodmirror:
                     debugprint("Bad: %s, %s, %s, %s" % (s.mirrorid, arch, m.country, m.url))
                     DB.badmirror(s.mirrorid, arch, m.country, m.url)
+                    print "Bad: %s, %s, %s, %s" % (s.mirrorid, arch, m.country, m.url)
             global_file = '%s/%s-global-%s.txt' % (s.outputpath, s.mirrorid, arch)
             glob_fo = open(global_file, 'w')
             for url in glob_urls:
@@ -492,6 +493,7 @@
                 for url in country_specific[code]:
                     country_fo.write('%s\n' % url)
                     DB.goodmirror(s.mirrorid, arch, code, url)
+                    print "Good: %s, %s, %s, %s" % (s.mirrorid, arch, m.country, m.url)
                 new_file_list.append(os.path.normpath(country_file))
 
         # clean up




More information about the fedora-extras-commits mailing list