summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-15 07:11:08 +0100
committerErich Eckner <git@eckner.net>2017-11-15 07:11:08 +0100
commit0cb807e5e230602499c6b1ba2604194d1911a20b (patch)
tree4caa55986abb6aad64ba0d5f886995e7164c086f
parentdb92162d34177ff7eec40157181506b4f551ab1e (diff)
downloadbuilder-0cb807e5e230602499c6b1ba2604194d1911a20b.tar.xz
bin/build-master-status: blocked packages are not handed out, too - don't count them for "next_pending"
-rwxr-xr-xbin/build-master-status7
1 files changed, 5 insertions, 2 deletions
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 | \