community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1703107 - in /comdev/projects.apache.org/scripts/import: parsecommittees.py parseprojects.py
Date Tue, 15 Sep 2015 06:45:18 GMT
Author: hboutemy
Date: Tue Sep 15 06:45:18 2015
New Revision: 1703107

URL: http://svn.apache.org/r1703107
Log:
added every generated or copied file to stdout

Modified:
    comdev/projects.apache.org/scripts/import/parsecommittees.py
    comdev/projects.apache.org/scripts/import/parseprojects.py

Modified: comdev/projects.apache.org/scripts/import/parsecommittees.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsecommittees.py?rev=1703107&r1=1703106&r2=1703107&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsecommittees.py (original)
+++ comdev/projects.apache.org/scripts/import/parsecommittees.py Tue Sep 15 06:45:18 2015
@@ -130,6 +130,7 @@ for s in itemlist :
             mode = "w"
         else:
             mode = "wb"
+        print("Copying source DOAP to doap/%s/pmc-doap.rdf..." % committeeId))
         with open("../../site/doap/%s/pmc-doap.rdf" % committeeId, mode) as f:
             f.write(rdf)
             f.close()
@@ -290,6 +291,7 @@ for pmc in re.findall(r"\* .+?\s+\(est\.
             doap_chair_person = ET.SubElement(doap_chair, 'foaf:Person')
             ET.SubElement(doap_chair_person, 'foaf:nick').text = committee['chair']
             ET.SubElement(doap_chair_person, 'foaf:name').text = people[committee['chair']]['name']
+            print("Writing doap/%s/pmc.rdf..." % committeeId)
             directory = "../../site/doap/%s" % committeeId
             if not os.path.exists(directory):
                 os.makedirs(directory)
@@ -325,14 +327,17 @@ for previous in committeesPrevious:
         previous.pop('reporting', None)
         committeesRetired.append(previous)
 
+print("Writing json/foundation/committees.json...")
 with open("../../site/json/foundation/committees.json", "w") as f:
     f.write(json.dumps(committeesList, sort_keys=True, indent=0))
     f.close()
 
+print("Writing json/foundation/committees-retired.json...")
 with open("../../site/json/foundation/committees-retired.json", "w") as f:
     f.write(json.dumps(committeesRetired, sort_keys=True, indent=0))
     f.close()
 
+print("Writing json/foundation/pmcs.json...")
 with open ("../../site/json/foundation/pmcs.json", "w") as f:
     f.write(json.dumps(pmcs, sort_keys=True, indent=0))
     f.close()

Modified: comdev/projects.apache.org/scripts/import/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parseprojects.py?rev=1703107&r1=1703106&r2=1703107&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/import/parseprojects.py Tue Sep 15 06:45:18 2015
@@ -158,7 +158,7 @@ for s in itemlist :
             projects[projectJsonFilename] = pjson
             #for e in add:
             #    pjson[e] = add[e]
-            print("Writing projects/%s.json..." % projectJsonFilename)
+            print("Writing projects/%s.json \t+ copying source DOAP to doap/%s/%s.rdf..."
% (projectJsonFilename, committeeId, projectJsonFilename))
             with open ("../../site/json/projects/%s.json" % projectJsonFilename, "w") as
f:
                 f.write(json.dumps(pjson, sort_keys=True, indent=0))
                 f.close()



Mime
View raw message