incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1617013 - /incubator/public/trunk/clutch.py
Date Sat, 09 Aug 2014 20:15:04 GMT
Author: sebb
Date: Sat Aug  9 20:15:04 2014
New Revision: 1617013

URL: http://svn.apache.org/r1617013
Log:
Check project is actually retired

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1617013&r1=1617012&r2=1617013&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Aug  9 20:15:04 2014
@@ -212,6 +212,7 @@ dom = xml.dom.minidom.parse(SITE_CONTENT
 
 graduatedProjects = {}
 graduatingOrRetiring = []
+retiredProjects = {}
 
 print("Gather data from podlings.xml ...")
 for row in dom.getElementsByTagName("podling"):
@@ -224,6 +225,10 @@ for row in dom.getElementsByTagName("pod
     resource = row.getAttribute("resource")
     graduatedProjects[resource.lower()] = True
 
+  if row.getAttribute("status") == 'retired':
+    resource = row.getAttribute("resource")
+    retiredProjects[resource.lower()] = True
+
   if row.getAttribute("status") == 'current':
     #print("Name: " + name)
 
@@ -581,8 +586,7 @@ for k in releases:
       errorMsg += ". See <a href=\"#h-Graduate\">help</a>."
       otherIssues.append(errorMsg)
       continue
-    else:
-        # TODO check whether k is an alias to a graduated project
+    if k in retiredProjects:
         print("INFO: {0}: retired project has remains on Incubator mirrors".format(k))
 
 releasesBadName = {}



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


Mime
View raw message