diff options
author | Erich Eckner <git@eckner.net> | 2017-08-03 13:59:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-03 13:59:14 +0200 |
commit | f89e3d67a34b34f7a22efdf290fa0e32fcdfdb3a (patch) | |
tree | 625cd6da3686e2798a1cea3230a9c1b6f1cb343b /bin/build-master-status | |
parent | c606d8cdf51dbba988ef5873e1b79dedd51e3119 (diff) | |
download | builder-f89e3d67a34b34f7a22efdf290fa0e32fcdfdb3a.tar.xz |
bin/build-master-status: only count broken packages which would be built (again)
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-x | bin/build-master-status | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index c14c431..79c0f42 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -99,7 +99,7 @@ staging=$( ls_master_mirror "i686/${dir}" done | \ grep -c '\.pkg\.tar\.xz$' - ) +) testing=$( ls_master_mirror 'i686' | \ grep 'testing$' | \ @@ -107,23 +107,46 @@ testing=$( ls_master_mirror "i686/${dir}" done | \ grep -c '\.pkg\.tar\.xz$' - ) +) broken=$( - ls "${work_dir}/package-states/" | \ - grep -c '\.broken$' - ) || true + ( + ls "${work_dir}/package-states/" | \ + grep '\.broken$' | \ + sed 's|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$| \1 \2 \3|' | \ + while read -r pkg rev mod_rev repo; do + if [ -z "$(find_dependencies_on_build_list "${pkg}" "${rev}" "${mod_rev}" "${repo}")" ]; then + echo "${pkg}" + fi + done + ( + ls "${work_dir}/build-list.loops" | \ + grep '^loop_[0-9]\+$' | \ + sed "s|^|${work_dir}/build-list.loops/|" | \ + xargs -r cat | \ + sort -u + ls "${work_dir}/package-states/" | \ + grep '\.broken$' | \ + sed 's|\(\.[^.]\+\)\{4\}||' | \ + sort -u + ) | \ + sort | \ + uniq -d + ) | \ + sort -u | \ + wc -l +) blocked=$( ls "${work_dir}/package-states/" | \ grep -c '\.blocked$' - ) || true +) || true locked=$( ls "${work_dir}/package-states/" | \ grep -c '\.locked$' - ) || true +) || true loops=$( ls "${work_dir}/build-list.loops" | \ grep -c '^loop_[0-9]\+$' - ) || true +) || true looped_packages=$( ls "${work_dir}/build-list.loops" | \ grep '^loop_[0-9]\+$' | \ @@ -131,7 +154,7 @@ looped_packages=$( xargs -r cat | \ sort -u | \ wc -l - ) +) tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT |