[79899] contrib/mpab/chroot-scripts/buildports

jmr at macports.org jmr at macports.org
Tue Jun 28 22:57:34 PDT 2011


Revision: 79899
          http://trac.macports.org/changeset/79899
Author:   jmr at macports.org
Date:     2011-06-28 22:57:33 -0700 (Tue, 28 Jun 2011)
Log Message:
-----------
mpab: have to use PIPESTATUS to get port's exit status instead of tee's

Modified Paths:
--------------
    contrib/mpab/chroot-scripts/buildports

Modified: contrib/mpab/chroot-scripts/buildports
===================================================================
--- contrib/mpab/chroot-scripts/buildports	2011-06-29 05:37:52 UTC (rev 79898)
+++ contrib/mpab/chroot-scripts/buildports	2011-06-29 05:57:33 UTC (rev 79899)
@@ -109,7 +109,7 @@
       done
       if [[ -z $skipPort ]]; then
          ${PREFIX}/bin/port -dv install $portName | tee ${PORTRESULTSDIR}/${portName}.log 2>&1
-         if [[ $? == 0 ]]; then
+         if [[ ${PIPESTATUS[0]} == 0 ]]; then
             /bin/mv ${PORTRESULTSDIR}/${portName}.log ${PORTRESULTSDIR}/success
             echo "success"
          else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110628/c60efe2e/attachment.html>


More information about the macports-changes mailing list