[121255] branches/gsoc14-pip2port/license.py
gaurav at macports.org
gaurav at macports.org
Sat Jun 21 04:07:34 PDT 2014
Revision: 121255
https://trac.macports.org/changeset/121255
Author: gaurav at macports.org
Date: 2014-06-21 04:07:34 -0700 (Sat, 21 Jun 2014)
Log Message:
-----------
Updated license.py to support command line args
Modified Paths:
--------------
branches/gsoc14-pip2port/license.py
Modified: branches/gsoc14-pip2port/license.py
===================================================================
--- branches/gsoc14-pip2port/license.py 2014-06-21 10:56:44 UTC (rev 121254)
+++ branches/gsoc14-pip2port/license.py 2014-06-21 11:07:34 UTC (rev 121255)
@@ -4,6 +4,7 @@
"""
import xmlrpclib
+import sys
#from datetime import datetime
#startTime = datetime.now()
@@ -11,6 +12,11 @@
list_packages = client.list_packages()
count = 0
+if len(sys.argv) > 1:
+ end = int(sys.argv[1])
+else:
+ end = 5000
+
for package_name in list_packages:
vers = client.package_releases(package_name)
if vers:
@@ -24,7 +30,8 @@
else:
print package_name
count = count + 1
- if count == 50:
+ if count == end:
break;
+
#print "TIME TAKEN =",datetime.now()-startTime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140621/b7931ac0/attachment.html>
More information about the macports-changes
mailing list