[97852] contrib/buildbot/deploy_archives.sh

wsiegrist at apple.com wsiegrist at apple.com
Mon Sep 17 13:56:33 PDT 2012


Revision: 97852
          http://trac.macports.org//changeset/97852
Author:   wsiegrist at apple.com
Date:     2012-09-17 13:56:33 -0700 (Mon, 17 Sep 2012)
Log Message:
-----------
Switch buildbot master from shlock to lockfile for new hardware

Modified Paths:
--------------
    contrib/buildbot/deploy_archives.sh

Modified: contrib/buildbot/deploy_archives.sh
===================================================================
--- contrib/buildbot/deploy_archives.sh	2012-09-17 20:34:56 UTC (rev 97851)
+++ contrib/buildbot/deploy_archives.sh	2012-09-17 20:56:33 UTC (rev 97852)
@@ -31,9 +31,7 @@
     LOCKFILE="./deploy.lock"
 fi
 
-while ! shlock -f $LOCKFILE -p $$; do
-    sleep 1
-done
+lockfile $LOCKFILE.$$ -r -1
 
 if [[ ! -d $ULPATH ]]; then
     echo $ULPATH does not exist!
@@ -69,5 +67,6 @@
 fi
 
 # clean up after ourselves
-rm $LOCKFILE
+rm -f $LOCKFILE.$$
 rm -rf $ULPATH
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120917/f0cd4626/attachment.html>


More information about the macports-changes mailing list