Revision
81592
Author
jmr@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

Diff

Modified: contrib/mpab/chroot-scripts/buildports (81591 => 81592)


--- 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