From f89e3d67a34b34f7a22efdf290fa0e32fcdfdb3a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 3 Aug 2017 13:59:14 +0200 Subject: bin/build-master-status: only count broken packages which would be built (again) --- bin/build-master-status | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2