Revision
81560
Author
jmr@macports.org
Date
2011-08-01 19:11:22 -0700 (Mon, 01 Aug 2011)

Log Message

mpab: only skip due to a failed dependency when the dep is port: type

Modified Paths

Diff

Modified: contrib/mpab/chroot-scripts/buildports (81559 => 81560)


--- contrib/mpab/chroot-scripts/buildports	2011-08-01 23:47:37 UTC (rev 81559)
+++ contrib/mpab/chroot-scripts/buildports	2011-08-02 02:11:22 UTC (rev 81560)
@@ -101,10 +101,11 @@
    #   echo "package found, not building again"
    #else
       skipPort=""
-      portDeps=`${PREFIX}/bin/port echo depof:${portName}`
+      portDeps=`${PREFIX}/bin/port info --depends --line ${portName} | /usr/bin/tr ',' ' '`
       for oneDep in ${portDeps}; do
-         if [[ -f ${PORTRESULTSDIR}/fail/${oneDep}.log ]]; then
-            skipPort=${oneDep}
+         depType=`echo ${oneDep} | /usr/bin/awk -F : '{print $1}'`
+         if [[ $depType == "port" && -f ${PORTRESULTSDIR}/fail/${oneDep}.log ]]; then
+            skipPort=`echo ${oneDep} | /usr/bin/awk -F : '{print $2}'`
             break
          fi
       done