index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-11-18 12:36:56 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-18 12:36:56 +0100 |
commit | 7a73178c391c6e2df2f2b2ae99a45a877195e0fa (patch) | |
tree | bf2a66226921e0630b1087271c754bd3695c4691 /bin | |
parent | f923c6d5dfac3e94ad467992e246126699546dbb (diff) |
-rwxr-xr-x | bin/build-master-status | 27 |
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|' | \ |