[81645] contrib/mpab
jmr at macports.org
jmr at macports.org
Wed Aug 3 02:56:26 PDT 2011
Revision: 81645
http://trac.macports.org/changeset/81645
Author: jmr at macports.org
Date: 2011-08-03 02:56:25 -0700 (Wed, 03 Aug 2011)
Log Message:
-----------
mpab: use --index with port info
Modified Paths:
--------------
contrib/mpab/chroot-scripts/buildports
contrib/mpab/do_status.sh
contrib/mpab/gather_archives.sh
Modified: contrib/mpab/chroot-scripts/buildports
===================================================================
--- 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
===================================================================
--- 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 at macports.org" && "$maint" != "openmaintainer at macports.org" ]]; then
# email maintainer
Modified: contrib/mpab/gather_archives.sh
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110803/a2d630f3/attachment.html>
More information about the macports-changes
mailing list