From 7a73178c391c6e2df2f2b2ae99a45a877195e0fa Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 18 Nov 2017 12:36:56 +0100 Subject: bin/build-master-status: do not query locally accessable information from the master mirror --- bin/build-master-status | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index 5390b13..a154ab5 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -5,9 +5,6 @@ # shellcheck source=conf/default.conf . "${0%/*}/../conf/default.conf" -# TODO: Do not extract infos available on the buildmaster from -# the master mirror - # TODO: Count tested packages. usage() { @@ -108,21 +105,17 @@ next_tasks=$( wc -l ) staging=$( - ls_master_mirror 'i686' | \ - grep 'staging$' | \ - while read -r dir; do - ls_master_mirror "i686/${dir}" - done | \ - grep -c '\.pkg\.tar\.xz$' -) || true + find "${work_dir}/package-states" -name '*.done' \ + -exec cat '{}' \; | \ + sort -u | \ + wc -l +) testing=$( - ls_master_mirror 'i686' | \ - grep 'testing$' | \ - while read -r dir; do - ls_master_mirror "i686/${dir}" - done | \ - grep -c '\.pkg\.tar\.xz$' -) || true + find "${work_dir}/package-states" \( -name '*.testing' -o -name '*.tested' \) \ + -exec cat '{}' \; | \ + sort -u | \ + wc -l +) { find "${work_dir}/package-states/" -maxdepth 1 -name '*.broken' -printf '%f\n' | \ sed 's|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$| \1 \2 \3|' | \ -- cgit v1.2.3-70-g09d2