[123369] branches/gsoc14-pip2port/pypi2port.py

gaurav at macports.org gaurav at macports.org
Fri Aug 8 13:25:32 PDT 2014


Revision: 123369
          https://trac.macports.org/changeset/123369
Author:   gaurav at macports.org
Date:     2014-08-08 13:25:32 -0700 (Fri, 08 Aug 2014)
Log Message:
-----------
Rectified the reason for failing...if phase_output instead of if not phase_output

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

Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py	2014-08-08 20:20:07 UTC (rev 123368)
+++ branches/gsoc14-pip2port/pypi2port.py	2014-08-08 20:25:32 UTC (rev 123369)
@@ -271,7 +271,7 @@
     for phase in [port_fetch,port_checksum,port_extract,port_configure,port_build,port_destroot,port_clean]:
         print phase.__name__
         phase_output = phase(name,portv)
-        if not phase_output:
+        if phase_output:
             print phase.__name__+" FAILED"
             print "Exiting"
             break
@@ -299,6 +299,7 @@
 #    print command
     try:
         command = "sudo port -t fetch dports/python/py-"+name+" subport=py"+portv+"-"+name
+#        command = "sudo port -d fetch dports/python/py-"+name+" subport=py"+portv+"-"+name
 #        phase_output = subprocess.call(command,shell=True,stderr=subprocess.STDOUT).strip()
 #        if type == "quiet":
 #            phase_output = subprocess.check_output(command,shell=True,stderr=subprocess.STDOUT).strip()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140808/c5b748e0/attachment.html>


More information about the macports-changes mailing list