You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by da...@apache.org on 2012/10/15 03:52:54 UTC
svn commit: r1398171 - /httpd/mod_mbox/trunk/scripts/site-index.py
Author: danielsh
Date: Mon Oct 15 01:52:54 2012
New Revision: 1398171
URL: http://svn.apache.org/viewvc?rev=1398171&view=rev
Log:
List podlings as podling.incubator.a.o
Modified:
httpd/mod_mbox/trunk/scripts/site-index.py
Modified: httpd/mod_mbox/trunk/scripts/site-index.py
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/scripts/site-index.py?rev=1398171&r1=1398170&r2=1398171&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/site-index.py (original)
+++ httpd/mod_mbox/trunk/scripts/site-index.py Mon Oct 15 01:52:54 2012
@@ -1,10 +1,24 @@
#!/usr/local/bin/python
+import xml.etree.cElementTree as ET
import os
import sys
ROOT="/x1/mail-archives/mod_mbox"
+# Get the list of podlings from a list the Incubator PMC maintains.
+def _get_podlings():
+ rv = set()
+ root = ET.parse('/www/incubator.apache.org/content/podlings.xml').getroot()
+ for e in root:
+ if e.get('status') == 'graduated':
+ continue
+ rv.add(e.attrib.get('resource'))
+ rv.update(e.attrib.get('resourceAliases', ',').split(','))
+ rv.remove('')
+ return rv
+
+podlings = _get_podlings()
tlps={}
count = 0
for files in os.listdir(ROOT):
@@ -16,9 +30,10 @@ for files in os.listdir(ROOT):
continue
if tlp == "www":
tlp = "asf-wide"
+ if tlp in podlings: tlp += '.incubator'
if not tlps.has_key(tlp):
tlps[tlp] = {}
- tlps[tlp][list] = path
+ tlps[tlp][list] = [path, 'incubator-'+path][tlp[:-10] in podlings]
count = count + 1
keys = tlps.keys()
@@ -52,7 +67,8 @@ document.location.hash = document.forms[
"""
for tlp in keys:
- print "<option value=\"%s\">%s</option>" % (tlp, tlp)
+ print "<option value=\"%s\">%s</option>" % \
+ (tlp, tlp.replace('.incubator', ' (incubating)'))
print """
</select>