[133003] contrib/mpab/mpsync.sh
jmr at macports.org
jmr at macports.org
Tue Feb 17 10:08:05 PST 2015
Revision: 133003
https://trac.macports.org/changeset/133003
Author: jmr at macports.org
Date: 2015-02-17 10:08:05 -0800 (Tue, 17 Feb 2015)
Log Message:
-----------
mpab: check out fresh copies of base and dports if either one is missing, even if the enclosing mpexport dir exists
Modified Paths:
--------------
contrib/mpab/mpsync.sh
Modified: contrib/mpab/mpsync.sh
===================================================================
--- contrib/mpab/mpsync.sh 2015-02-17 16:37:01 UTC (rev 133002)
+++ contrib/mpab/mpsync.sh 2015-02-17 18:08:05 UTC (rev 133003)
@@ -43,7 +43,7 @@
rm ${chrootPath}/var/tmp/$1
}
-if [[ -d ${dataDir}/${exportDir} ]] ; then
+if [[ -d ${dataDir}/${exportDir}/base && -d ${dataDir}/${exportDir}/dports ]] ; then
if [[ -e ${dataDir}/${exportDir}/base/.svn/lock ]]; then
svn --non-interactive cleanup ${dataDir}/${exportDir}/base
fi
@@ -55,6 +55,7 @@
svn update --non-interactive \
-r HEAD ${dataDir}/${exportDir}/dports || exit 1
else
+ rm -rf ${dataDir}/${exportDir}
echo "Checking out macports from svn..."
mkdir -p ${dataDir}/${exportDir}
svn checkout --non-interactive -r HEAD \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150217/ec17fe19/attachment.html>
More information about the macports-changes
mailing list