index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-08-03 14:45:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-03 14:45:20 +0200 |
commit | 8cdec0bf107af726c991cd433f84d54be48b7e1f (patch) | |
tree | 3e38b3492754b682e8a662a4725c07e1e5bdd820 | |
parent | 2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda (diff) |
-rwxr-xr-x | bin/build-master-status | 10 |
diff --git a/bin/build-master-status b/bin/build-master-status index 6fa28b8..45376c2 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -255,7 +255,11 @@ if ${web}; then "${rev}" \ "${mod_rev}" \ "${repo}" \ - "$(wc -l < "${work_dir}/package-states/${sf}.broken")" + "$(wc -l < "${work_dir}/package-states/${sf}.broken")" \ + "$( + ls -t "${webserver_directory}/build-logs" | \ + grep -m1 "^$(str_to_regex "${sf}.")[^.]\+\.build-log\.gz\$" + )" if [ -f "${work_dir}/package-states/${sf}.blocked" ]; then tr '\n' ' ' < "${work_dir}/package-states/${sf}.blocked" | \ sed 's|FS#\([0-9]\+\)|<a href="https://bugs.archlinux.org/task/\1">FS#\1</a>|' @@ -265,14 +269,14 @@ if ${web}; then printf '\n' done | \ sort -k5n,5 | \ - while read -r pkg rev mod_rev repo count reason; do + while read -r pkg rev mod_rev repo count log_file reason; do printf '<tr>' printf '<td>%s</td>' \ '<a href="graphs/'"${pkg}"'.png">'"${pkg}"'</a>' \ "${rev}" \ "${mod_rev}" \ "${repo}" \ - "${count}" \ + '<a href="build-logs/'"${log_file}"'">'"${count}"'</a>' \ "${reason}" printf '</tr>\n' done >> \ |