You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/12/19 10:44:01 UTC
svn commit: r1871820 - /comdev/projects.apache.org/trunk/scripts/newtlp.py
Author: sebb
Date: Thu Dec 19 10:44:01 2019
New Revision: 1871820
URL: http://svn.apache.org/viewvc?rev=1871820&view=rev
Log:
Check for missing param
Modified:
comdev/projects.apache.org/trunk/scripts/newtlp.py
Modified: comdev/projects.apache.org/trunk/scripts/newtlp.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/newtlp.py?rev=1871820&r1=1871819&r2=1871820&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/newtlp.py (original)
+++ comdev/projects.apache.org/trunk/scripts/newtlp.py Thu Dec 19 10:44:01 2019
@@ -16,8 +16,15 @@ data/committees/<pmc>.rdf
import sys
import os.path
+import os
from string import Template
import re
+
+if len(sys.argv) == 1:
+ print("Please provide a list of project ids")
+ sys.exit(1)
+
+# This currently reads data at load time
import committee_info
# extract committees composition
@@ -80,8 +87,11 @@ for arg in sys.argv[1:]:
print("Creating "+outfile)
with open(outfile,'w') as o:
o.write(out)
+ os.system("svn add %s" % outfile)
update_xml(arg)
else:
print("No description found for "+arg)
except KeyError:
print("Cannot find "+arg)
+
+os.system("svn diff %s" % datadir)
\ No newline at end of file