community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1723314 - /comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
Date Wed, 06 Jan 2016 13:22:52 GMT
Author: sebb
Date: Wed Jan  6 13:22:52 2016
New Revision: 1723314

URL: http://svn.apache.org/viewvc?rev=1723314&view=rev
Log:
Check if missing RDF file exists

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py?rev=1723314&r1=1723313&r2=1723314&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py Wed Jan  6 13:22:52
2016
@@ -6,6 +6,7 @@ if sys.hexversion < 0x03000000:
     raise ImportError("This script requires Python 3")
 import io
 import os
+import os.path
 import urllib.request
 import xml.etree.ElementTree as ET
 import xml.dom.minidom as minidom
@@ -203,6 +204,8 @@ for group in sorted(committees, key=keyo
                 committee['rdf'] = pmcDataUrls[committeeId]
             else:
                 print("WARN: %s (%s) missing from /data/committees.xml" % (fullName, committeeId))
+                if os.path.isfile("../../data/committees/%s.rdf" % committeeId):
+                    print("INFO: %s.rdf exists in data/committees/ but is not in /data/committees.xml"
% committeeId)
 
             if committeeId in pmcs:
                 if 'charter' in pmcs[committeeId]:



Mime
View raw message