From a689951e9d6ace2e1d617cdd8ab337a60fe56c74 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 17 May 2017 14:32:49 +0200 Subject: bin/get-assignment: respect broken packages --- bin/get-assignment | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/get-assignment b/bin/get-assignment index dc881e8..db9e2f4 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -15,7 +15,7 @@ # TODO: # respect build-manually-list ("blocked") -# respect broken packages +# possibly hand out "broken" packages to different build slave . "${0%/*}/../conf/default.conf" @@ -23,8 +23,9 @@ mkdir -p "${work_dir}/package-states" hand_out_assignment() { - # locked packages won't be handed out - if [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; then + # locked and broken packages won't be handed out + if [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] || + [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ]; then return 0 fi -- cgit v1.2.3-70-g09d2