[81560] contrib/mpab/chroot-scripts/buildports
jmr at macports.org
jmr at macports.org
Mon Aug 1 19:11:25 PDT 2011
Revision: 81560
http://trac.macports.org/changeset/81560
Author: jmr at 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:
--------------
contrib/mpab/chroot-scripts/buildports
Modified: contrib/mpab/chroot-scripts/buildports
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110801/7e06187f/attachment.html>
More information about the macports-changes
mailing list