incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1717133 - /incubator/public/trunk/clutch.py
Date Sun, 29 Nov 2015 23:15:58 GMT
Author: sebb
Date: Sun Nov 29 23:15:58 2015
New Revision: 1717133

URL: http://svn.apache.org/viewvc?rev=1717133&view=rev
Log:
Use the SVN source listing instead of making HTTP request to www.apache.org

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1717133&r1=1717132&r2=1717133&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sun Nov 29 23:15:58 2015
@@ -588,12 +588,14 @@ print("Gather incubator PGP keys data an
 keysList = {}
 releases = {}
 releasesBadName = {}
+distareas = {} # podlings with dist areas
 
 with Popen(['svn', 'ls', '-R', 'https://dist.apache.org/repos/dist/release/incubator'], stdout=PIPE,
universal_newlines=True) as s:
     for line in s.stdout:
         line = line.rstrip()
         fields = line.split('/')
         podling = fields[0]
+        distareas[podling] = True
         file = fields[-1]
         if file:
             if re.search('KEYS(\.txt)?$', file):
@@ -840,13 +842,7 @@ for k in sorted(projectNames, key=str.lo
     for nameDist in projects[k]['resourceNames']:
       urlDist = "http://www.apache.org/dist/incubator/{0}/".format(nameDist)
       urlMirror = "http://www.apache.org/dyn/closer.cgi/incubator/{0}/".format(nameDist)
-      if optionVerbose:
-        print("DEBUG: Trying dist area " + urlDist)
-      try:
-        getUrl(urlDist)
-      except IOError:
-        pass
-      else:
+      if nameDist in distareas:
         projects[k]['urlDist'] = urlMirror
         break
   if not projects[k]['urlDist']:



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message