index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-09-14 09:33:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-14 09:33:40 +0200 |
commit | 5163c6e3912f6982b02b9c6b59954640eda9a93c (patch) | |
tree | 246234ce93cb3bea153e98de2eb16021e0e6c57a /bin | |
parent | 31af8b7c9f0cc18830b873629294f656c41efcd7 (diff) |
-rwxr-xr-x | bin/build-master-status | 20 |
diff --git a/bin/build-master-status b/bin/build-master-status index 1f76a99..3a33a54 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -284,9 +284,12 @@ if ${web}; then find "${work_dir}/package-states" -maxdepth 1 -name '*.broken' -printf '%f\n' | \ sed 's|\.broken$||' | \ sed 's|^\(\(.\+\)\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\)$|\1 \2 \3 \4 \5|' | \ - sort -k1,1 | \ - join -1 2 -2 1 -o 1.1,1.2,1.3,1.4,1.5 - "${tmp_dir}/broken-packages-names" | \ while read -r sf pkg rev mod_rev repo; do + if grep -qxF "${pkg}" "${tmp_dir}/broken-packages-names"; then + printf '1 ' + else + printf '0 ' + fi printf '%s ' \ "${pkg}" \ "${rev}" \ @@ -346,11 +349,18 @@ if ${web}; then fi printf '\n' done | \ - sort -k5n,5 | \ - while read -r pkg rev mod_rev repo count log_file dependent reason; do + sort -k6n,6 | \ + while read -r buildable pkg rev mod_rev repo count log_file dependent reason; do + if [ "${buildable}" -eq 0 ]; then + left='(' + right=')' + else + unset left + unset right + fi printf '<tr>' printf '<td>%s</td>' \ - '<a href="graphs/'"${pkg}"'.png">'"${pkg}"'</a>' \ + '<a href="graphs/'"${pkg}"'.png">'"${left}${pkg}${right}"'</a>' \ "${rev}" \ "${mod_rev}" \ "${repo}" \ |