diff options
-rwxr-xr-x | bin/build-master-status | 12 |
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 |