community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1820425 - /comdev/tools/get_meetups
Date Sat, 06 Jan 2018 22:38:42 GMT
Author: sebb
Date: Sat Jan  6 22:38:42 2018
New Revision: 1820425

URL: http://svn.apache.org/viewvc?rev=1820425&view=rev
Log:
Add --no-import option

Modified:
    comdev/tools/get_meetups

Modified: comdev/tools/get_meetups
URL: http://svn.apache.org/viewvc/comdev/tools/get_meetups?rev=1820425&r1=1820424&r2=1820425&view=diff
==============================================================================
--- comdev/tools/get_meetups (original)
+++ comdev/tools/get_meetups Sat Jan  6 22:38:42 2018
@@ -1,6 +1,16 @@
 #!/usr/bin/python
-import curses
+
+import sys
 import meetups
 
-meetups.importMeetups()
+arguments=sys.argv[1:]
+
+if len(arguments) == 1 and arguments[0] == '--no-import':
+    print "=== Skipping data import phase"
+elif len(arguments) == 0:
+    meetups.importMeetups()
+else:
+    print "** Invalid parameter; only expecting --no-import **"
+    sys.exit(1)
+
 meetups.createFiles()



Mime
View raw message