[124075] branches/gsoc14-pip2port/pypi2port

gaurav at macports.org gaurav at macports.org
Sun Aug 17 23:56:57 PDT 2014


Revision: 124075
          https://trac.macports.org/changeset/124075
Author:   gaurav at macports.org
Date:     2014-08-17 23:56:57 -0700 (Sun, 17 Aug 2014)
Log Message:
-----------
Updated executable

Modified Paths:
--------------
    branches/gsoc14-pip2port/pypi2port

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-08-18 06:56:31 UTC (rev 124074)
+++ branches/gsoc14-pip2port/pypi2port	2014-08-18 06:56:57 UTC (rev 124075)
@@ -136,11 +136,10 @@
 
 def fetch_url(pkg_name, pkg_version, checksum=False, deps=False):
     values = client.release_urls(pkg_name, pkg_version)
-#    print values
-#    sys.exit(1)
     if checksum:
+#        print values
         for value in values:
-            if value['filename'].split('.')[-1] == 'gz':
+            if value['filename'].split('.')[-1] == 'gz' or value['filename'].split('.')[-1] == 'zip':
                 return fetch(pkg_name, value)
     else:
         for value in values:
@@ -157,7 +156,7 @@
         return
     values = client.release_urls(pkg_name, pkg_version)
     for value in values:
-        if not value['filename'].split('.')[-1] == 'gz':
+        if not(value['filename'].split('.')[-1] == 'gz' or value['filename'].split('.')[-1] == 'zip'):
             fetch(pkg_name, value)
     try:
         with open('./sources/python/py-'
@@ -171,7 +170,7 @@
                               ignore_errors=True)
                 items = os.listdir('./sources/python/py-' + pkg_name)
                 for item in items[:]:
-                    if not item.split('.')[-1] == 'gz':
+                    if not(item.split('.')[-1] == 'gz' or item.split('.')[-1] == 'zip'):
                         os.remove('./sources/python/py-'
                                   + pkg_name + '/' + item)
                         items.remove(item)
@@ -187,7 +186,7 @@
                               ignore_errors=True)
                 items = os.listdir('./sources/python/py-'+pkg_name)
                 for item in items[:]:
-                    if not item.split('.')[-1] == 'gz':
+                    if not(item.split('.')[-1] == 'gz' or item.split('.')[-1] == 'zip'):
                         os.remove('./sources/python/py-'+pkg_name+'/'+item)
                         items.remove(item)
                 if not items:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140817/9091f531/attachment-0001.html>


More information about the macports-changes mailing list