[38495] trunk/base/portmgr/jobs/mprsyncup

wsiegrist at apple.com wsiegrist at apple.com
Tue Jul 22 11:09:33 PDT 2008


Revision: 38495
          http://trac.macosforge.org/projects/macports/changeset/38495
Author:   wsiegrist at apple.com
Date:     2008-07-22 11:09:32 -0700 (Tue, 22 Jul 2008)
Log Message:
-----------
Add checks to cleanup exports leftover from failed mprsyncup runs

Modified Paths:
--------------
    trunk/base/portmgr/jobs/mprsyncup

Modified: trunk/base/portmgr/jobs/mprsyncup
===================================================================
--- trunk/base/portmgr/jobs/mprsyncup	2008-07-22 17:19:31 UTC (rev 38494)
+++ trunk/base/portmgr/jobs/mprsyncup	2008-07-22 18:09:32 UTC (rev 38495)
@@ -58,7 +58,13 @@
 else
     ${SVN} checkout ${SVNURL}/trunk/base ${TBASE}
 fi
+
+# Delete old exports if they exist
+if [ -d ${TBASE}-export ]; then
+    $RM -rf ${TBASE}-export;
+fi
 ${SVN} export ${TBASE} ${TBASE}-export
+
 if [ ! -d ${RSYNCROOT}/trunk/base ]; then
     ${MKDIR} -p ${RSYNCROOT}/trunk
 fi
@@ -76,7 +82,13 @@
 else
     ${SVN} checkout ${RELEASE_URL} ${RBASE}
 fi
+
+# Delete old exports if they exist
+if [ -d ${RBASE}-export ]; then
+    $RM -rf ${RBASE}-export;
+fi
 ${SVN} export ${RBASE} ${RBASE}-export
+
 if [ ! -d ${RSYNCROOT}/release/base ]; then
     ${MKDIR} -p ${RSYNCROOT}/release/base
 fi
@@ -89,7 +101,13 @@
 else
     ${SVN} checkout ${SVNURL}/trunk/dports ${PORTS}
 fi
+
+# Delete old exports if they exist
+if [ -d ${PORTS}-export ]; then
+    $RM -rf ${PORTS}-export;
+fi
 ${SVN} export ${PORTS} ${PORTS}-export
+
 if [ ! -d ${RSYNCROOT}/release/ports ]; then
     ${MKDIR} -p ${RSYNCROOT}/release/ports
 fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080722/b95b2fc2/attachment.html 


More information about the macports-changes mailing list