summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-03 12:20:04 +0200
committerErich Eckner <git@eckner.net>2017-07-03 12:20:04 +0200
commit935ecd4f59ca0da45bd5cd502f98c1b7006060b9 (patch)
treeafe883a597b3de1f17507c6a2a25a5786fd1f8a1 /bin/build-master-status
parentc673d3efc212a4362a9a3a413c0b6b097a4e9353 (diff)
downloadbuilder-935ecd4f59ca0da45bd5cd502f98c1b7006060b9.tar.xz
bin/build-master-status: sort broken packages by number of builds
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status12
1 files changed, 11 insertions, 1 deletions
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 '<tr>'
printf '<td>%s</td>' \
"${pkg}" \
"${rev}" \
"${mod_rev}" \
"${repo}" \
- "$(wc -l < "${work_dir}/package-states/${sf}.broken")"
+ "${count}"
printf '</tr>\n'
done
else