From 935ecd4f59ca0da45bd5cd502f98c1b7006060b9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 3 Jul 2017 12:20:04 +0200 Subject: bin/build-master-status: sort broken packages by number of builds --- bin/build-master-status | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/build-master-status b/bin/build-master-status index 69274a3..8eb1b7e 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -199,13 +199,23 @@ if [ -n "${broken_output}" ]; then if ${nice}; then sed 's|^\(\(.\+\)\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\)$|\1 \2 \3 \4 \5|' | \ while read -r sf pkg rev mod_rev repo; do + printf '%s ' \ + "${pkg}" \ + "${rev}" \ + "${mod_rev}" \ + "${repo}" \ + "$(wc -l < "${work_dir}/package-states/${sf}.broken")" + printf '\n' + done | \ + sort -k5n,5 | \ + while read -r pkg rev mod_rev repo count; do printf '' printf '%s' \ "${pkg}" \ "${rev}" \ "${mod_rev}" \ "${repo}" \ - "$(wc -l < "${work_dir}/package-states/${sf}.broken")" + "${count}" printf '\n' done else -- cgit v1.2.3-70-g09d2