aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-03-13 00:04:59 +0800
committerpav <pav@FreeBSD.org>2008-03-13 00:04:59 +0800
commite981ba67754d399efa694f1b526278b4a660733d (patch)
tree9d0d4285ea58ed49bb78baea98f8a20a64552389 /Tools
parent175219cbe8a4352c905339f35528c0796e847133 (diff)
downloadfreebsd-ports-gnome-e981ba67754d399efa694f1b526278b4a660733d.tar.gz
freebsd-ports-gnome-e981ba67754d399efa694f1b526278b4a660733d.tar.zst
freebsd-ports-gnome-e981ba67754d399efa694f1b526278b4a660733d.zip
- Don't write queue entry for machine that's not on mlist. This allows us to
gracefully remove a node from the workload, and also it prevents build from stucking when machine is deleted from mlist.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/releasemachine6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/releasemachine b/Tools/portbuild/scripts/releasemachine
index eaf9bd9d3bf1..897d91efc537 100755
--- a/Tools/portbuild/scripts/releasemachine
+++ b/Tools/portbuild/scripts/releasemachine
@@ -5,6 +5,12 @@ buildroot=/var/portbuild
i=$1
m=$2
+machonline=$(grep -c ${m} ${buildroot}/${i}/mlist)
+if [ ${machonline} = "0" ]; then
+ rm ${buildroot}/${i}/queue/${m}
+ exit 0
+fi
+
. ${buildroot}/${i}/portbuild.conf
if [ -f ${buildroot}/${i}/portbuild.${m} ]; then
. ${buildroot}/${i}/portbuild.${m}