[120859] branches/gsoc14-pip2port/tester.py

gaurav at macports.org gaurav at macports.org
Tue Jun 10 03:13:35 PDT 2014


Revision: 120859
          https://trac.macports.org/changeset/120859
Author:   gaurav at macports.org
Date:     2014-06-10 03:13:35 -0700 (Tue, 10 Jun 2014)
Log Message:
-----------
Updated support for dependencies

Modified Paths:
--------------
    branches/gsoc14-pip2port/tester.py

Modified: branches/gsoc14-pip2port/tester.py
===================================================================
--- branches/gsoc14-pip2port/tester.py	2014-06-10 10:02:02 UTC (rev 120858)
+++ branches/gsoc14-pip2port/tester.py	2014-06-10 10:13:35 UTC (rev 120859)
@@ -174,13 +174,16 @@
             print ""
         return list
     except:
-        items = os.listdir('./sources/'+pkg_name)
-        for item in items[:]:
-            if not item.split('.')[-1] == 'gz':
-                os.remove('./sources/'+pkg_name+'/'+item)
-                items.remove(item)
-        if not items:
-            os.rmdir('./sources/'+pkg_name)
+        try:
+            items = os.listdir('./sources/'+pkg_name)
+            for item in items[:]:
+                if not item.split('.')[-1] == 'gz':
+                    os.remove('./sources/'+pkg_name+'/'+item)
+                    items.remove(item)
+            if not items:
+                os.rmdir('./sources/'+pkg_name)
+        except:
+            print ""
         return False
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140610/bd5733b7/attachment-0001.html>


More information about the macports-changes mailing list