From 0cb807e5e230602499c6b1ba2604194d1911a20b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 15 Nov 2017 07:11:08 +0100 Subject: bin/build-master-status: blocked packages are not handed out, too - don't count them for "next_pending" --- bin/build-master-status | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index 2bb576b..d95eddb 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -87,11 +87,14 @@ pending_packages=$( next_tasks=$( { cat "${work_dir}/build-list" - find "${work_dir}/package-states" -maxdepth 1 -name '*.broken' -printf '%f\n' | \ + find "${work_dir}/package-states" -maxdepth 1 \ + \( -name '*.broken' -o -name '*.blocked' \) \ + -printf '%f\n' | \ sed ' s|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$| \1 \2 \3| p - ' + ' | \ + sort -u } | \ sort | \ uniq -u | \ -- cgit v1.2.3-70-g09d2