check-mirrors return-mirrorlist.py,1.16,1.17

Michael Patrick McGrath (mmcgrath) fedora-extras-commits at redhat.com
Sun Oct 15 04:02:27 UTC 2006


Author: mmcgrath

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

Modified Files:
	return-mirrorlist.py 
Log Message:
Fixed an issue where when defaulting to global lists a python trace would result



Index: return-mirrorlist.py
===================================================================
RCS file: /cvs/fedora/check-mirrors/return-mirrorlist.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- return-mirrorlist.py	30 Aug 2006 02:21:16 -0000	1.16
+++ return-mirrorlist.py	15 Oct 2006 04:02:23 -0000	1.17
@@ -21,7 +21,7 @@
 # - Note, this script does have some dependancies on the file list
 #    This should be removed in later versions
 # - Top has SQL Injection issues. needs an isint()
-debug = False
+debug = True
 
 import os
 import sys
@@ -90,7 +90,10 @@
         if results == 0:
             if self.country != 'global':
                 print '# No results found for country: %s\n# Defaulting to global' % self.country
-                self.printMirrors(repo, arch, 'global')
+		#self.country='global'
+                self.countrySQL=''
+                self.printMirrors()
+                #self.printMirrors(self.repo, self.arch, 'global')
             else:
                 print '# no mirrors found, using default'
                 return False




More information about the scm-commits mailing list