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

jmr at macports.org jmr at macports.org
Tue Aug 2 08:58:42 PDT 2011


Revision: 81592
          http://trac.macports.org/changeset/81592
Author:   jmr at macports.org
Date:     2011-08-02 08:58:41 -0700 (Tue, 02 Aug 2011)
Log Message:
-----------
mpab: turn skipping of ports with existing archives back on, but also mark them as successes

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

Modified: contrib/mpab/chroot-scripts/buildports
===================================================================
--- contrib/mpab/chroot-scripts/buildports	2011-08-02 15:38:18 UTC (rev 81591)
+++ contrib/mpab/chroot-scripts/buildports	2011-08-02 15:58:41 UTC (rev 81592)
@@ -96,10 +96,10 @@
    portVersion=`${PREFIX}/bin/port info --version --line ${portName}`
    portRevision=`${PREFIX}/bin/port info --revision --line ${portName}`
    portPackageBaseName="${portName}-${portVersion}_${portRevision}"
-   #ls ${packageDir}/${portName}/${portPackageBaseName}[+.]*${tclOS}_${tclOSMajor}.${ACCEPT_ARCHS}${ARCHIVE_TYPE} > /dev/null 2>&1
-   #if [[ $? == 0 ]]; then
-   #   echo "package found, not building again"
-   #else
+   ls ${packageDir}/${portName}/${portPackageBaseName}[+.]*${tclOS}_${tclOSMajor}.${ACCEPT_ARCHS}${ARCHIVE_TYPE} > /dev/null 2>&1
+   if [[ $? == 0 ]]; then
+      echo "package found, not building again" | tee -a ${PROGRESSLOG} | tee ${PORTRESULTSDIR}/success/${portName}.log
+   else
       skipPort=""
       portDeps=`${PREFIX}/bin/port info --depends --line ${portName} | /usr/bin/tr ',' ' '`
       for oneDep in ${portDeps}; do
@@ -128,7 +128,7 @@
          echo "skipping, ${skipPort} previously failed and is needed" | tee -a ${PROGRESSLOG}
          echo "${portName} not built due to failed dependency ${skipPort}" > ${PORTRESULTSDIR}/fail/${portName}.log
       fi
-   #fi
+   fi
    currentCount=$((${currentCount}+1))
 done
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110802/aa56b4f2/attachment.html>


More information about the macports-changes mailing list