- 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.
This commit is contained in:
Pav Lucistnik 2008-03-12 16:04:59 +00:00
parent 3b2eaa9a22
commit d50ed44a19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208894

View file

@ -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}