Revision
81645
Author
jmr@macports.org
Date
2011-08-03 02:56:25 -0700 (Wed, 03 Aug 2011)

Log Message

mpab: use --index with port info

Modified Paths

Diff

Modified: contrib/mpab/chroot-scripts/buildports (81644 => 81645)


--- contrib/mpab/chroot-scripts/buildports	2011-08-03 09:35:01 UTC (rev 81644)
+++ contrib/mpab/chroot-scripts/buildports	2011-08-03 09:56:25 UTC (rev 81645)
@@ -93,15 +93,15 @@
 
    echo "Building ${portName} (${currentCount} of ${portCount})...\c" | tee -a ${PROGRESSLOG}
    # If there's a package, don't build again
-   portVersion=`${PREFIX}/bin/port info --version --line ${portName}`
-   portRevision=`${PREFIX}/bin/port info --revision --line ${portName}`
+   portVersion=`${PREFIX}/bin/port info --index --version --line ${portName}`
+   portRevision=`${PREFIX}/bin/port info --index --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" | tee -a ${PROGRESSLOG} | tee ${PORTRESULTSDIR}/success/${portName}.log
    else
       skipPort=""
-      portDeps=`${PREFIX}/bin/port info --depends --line ${portName} | /usr/bin/tr ',' ' '`
+      portDeps=`${PREFIX}/bin/port info --index --depends --line ${portName} | /usr/bin/tr ',' ' '`
       for oneDep in ${portDeps}; do
          depType=`echo ${oneDep} | /usr/bin/awk -F : '{print $1}'`
          if [[ $depType == "port" ]]; then

Modified: contrib/mpab/do_status.sh (81644 => 81645)


--- contrib/mpab/do_status.sh	2011-08-03 09:35:01 UTC (rev 81644)
+++ contrib/mpab/do_status.sh	2011-08-03 09:56:25 UTC (rev 81645)
@@ -27,7 +27,7 @@
         echo "[FAIL] ${portname}" >> $STATUS_LOG
         let "failed = failed + 1"
         # send email to appropriate places
-        portmaintainers=$(${PREFIX}/bin/port info --maintainers --line ${portname} | tr ',' ' ')
+        portmaintainers=$(${PREFIX}/bin/port info --index --maintainers --line ${portname} | tr ',' ' ')
         for maint in $portmaintainers; do
             if [[ "$maint" != "nomaintainer@macports.org" && "$maint" != "openmaintainer@macports.org" ]]; then
                 # email maintainer

Modified: contrib/mpab/gather_archives.sh (81644 => 81645)


--- contrib/mpab/gather_archives.sh	2011-08-03 09:35:01 UTC (rev 81644)
+++ contrib/mpab/gather_archives.sh	2011-08-03 09:56:25 UTC (rev 81645)
@@ -24,8 +24,8 @@
     if ls logs-*/success/${portname}.log > /dev/null 2>&1 ; then
         if ./mpexport/base/portmgr/jobs/port_binary_distributable.tcl ${portname}; then
             echo $portname is distributable
-            portversion=$(${PREFIX}/bin/port info --version --line ${portname})
-            portrevision=$(${PREFIX}/bin/port info --revision --line ${portname})
+            portversion=$(${PREFIX}/bin/port info --index --version --line ${portname})
+            portrevision=$(${PREFIX}/bin/port info --index --revision --line ${portname})
             for archive in ${PREFIX}/var/macports/software/${portname}/${portname}-${portversion}_${portrevision}[+.]*; do
                 aname=$(basename $archive)
                 echo preparing archive for upload: $aname