incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r947365 - /incubator/public/trunk/clutch.py
Date Sun, 23 May 2010 06:02:15 GMT
Author: crossley
Date: Sun May 23 06:02:15 2010
New Revision: 947365

URL: http://svn.apache.org/viewvc?rev=947365&view=rev
Log:
Commence an attempt to deal with inconsistent use of names for various resources.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=947365&r1=947364&r2=947365&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sun May 23 06:02:15 2010
@@ -41,6 +41,7 @@ Note: The 'svn log' queries will only ru
 # FIXME: Some projects use different names in different contexts, and cannot
 #        be automatically handled, e.g. Lucene.Net, log4php (some of their stats
 #        are missing).
+#        See beginning attempt to handle this with "resourceName".
 # FIXME: Perhaps send some error reporting to a log file:
 #        - validate the dates.
 #        - detect short description, e.g. Hama = Hama
@@ -176,6 +177,7 @@ for token in tokens:
     projects[id]['description'] = ""
     projects[id]['sponsor'] = "? not known"
     projects[id]['mentors'] = ""
+    projects[id]['resourceName'] = id
     projects[id]['startDate'] = ""
     projects[id]['entryDate'] = None
     projects[id]['committersSvn'] = None
@@ -730,13 +732,15 @@ for k in projectNames:
       print 'INFO: %s: Does not yet have a website' % k
 
   # See if they have a distribution area yet.
+  if k == "beanvalidation":
+    projects[k]['resourceName'] = "bval"
   if optionUseClutchState and projects[k]['hasClutchState'] and state[k]['urlDist']:
     projects[k]['urlDist'] = state[k]['urlDist']
   else:
     urlDist = "http://www.apache.org/dist/incubator/%s/" % \
-        projects[k]['statusFileName']
+        projects[k]['resourceName']
     urlMirror = "http://www.apache.org/dyn/closer.cgi/incubator/%s/" % \
-        projects[k]['statusFileName']
+        projects[k]['resourceName']
     try:
       urllib2.urlopen(urlDist)
     except IOError:
@@ -747,11 +751,11 @@ for k in projectNames:
   # Detect if they have a PGP KEYS file
   if projects[k]['urlDist']:
     try:
-      keysList.names[k]
+      keysList.names[projects[k]['resourceName']]
     except KeyError:
       print 'INFO: %s: Does not yet have a PGP KEYS file' % k
     else:
-      projects[k]['urlKeys'] = keysList.names[k]['urlKeys']
+      projects[k]['urlKeys'] = keysList.names[projects[k]['resourceName']]['urlKeys']
 
   # Detect mail lists established
   # First, try the list names from their status page



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


Mime
View raw message