[32821] trunk/base/portmgr/jobs

jmpp at macports.org jmpp at macports.org
Sun Jan 13 19:38:59 PST 2008


Revision: 32821
          http://trac.macosforge.org/projects/macports/changeset/32821
Author:   jmpp at macports.org
Date:     2008-01-13 19:38:58 -0800 (Sun, 13 Jan 2008)

Log Message:
-----------

Follow the proper error reporting procedure if stale lock files are found (put together a mail and send it to the people in charge),
don't just exit with an error line to the console as that can be easily lost.

Modified Paths:
--------------
    trunk/base/portmgr/jobs/GuideRegen.sh
    trunk/base/portmgr/jobs/PortIndexRegen.sh

Modified: trunk/base/portmgr/jobs/GuideRegen.sh
===================================================================
--- trunk/base/portmgr/jobs/GuideRegen.sh	2008-01-14 03:12:22 UTC (rev 32820)
+++ trunk/base/portmgr/jobs/GuideRegen.sh	2008-01-14 03:38:58 UTC (rev 32821)
@@ -48,8 +48,7 @@
 if [ ! -e $LOCKFILE ]; then
     $TOUCH $LOCKFILE
 else
-    echo "Guide Regen lockfile found, is another regen job running?"
-    exit 1
+    echo "Guide Regen lockfile found, is another regen job running?" > $FAILURE_LOG; bail
 fi
 
 # Checkout/update the doc tree

Modified: trunk/base/portmgr/jobs/PortIndexRegen.sh
===================================================================
--- trunk/base/portmgr/jobs/PortIndexRegen.sh	2008-01-14 03:12:22 UTC (rev 32820)
+++ trunk/base/portmgr/jobs/PortIndexRegen.sh	2008-01-14 03:38:58 UTC (rev 32821)
@@ -57,8 +57,7 @@
 if [ ! -e $LOCKFILE ]; then
     touch $LOCKFILE
 else
-    echo "PortIndex Regen lockfile found, is another regen job running?"
-    exit 1
+    echo "PortIndex Regen lockfile found, is another regen job running?" > $FAILURE_LOG; bail
 fi
 
 # Checkout/update the ports tree

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080113/8666af6e/attachment-0001.html


More information about the macports-changes mailing list