Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-03 14:45:20 +0200
committerErich Eckner <git@eckner.net>2017-08-03 14:45:20 +0200
commit8cdec0bf107af726c991cd433f84d54be48b7e1f (patch)
tree3e38b3492754b682e8a662a4725c07e1e5bdd820 /bin/build-master-status
parent2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda (diff)
bin/build-master-status: give link to last log for broken packages
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status10
1 files changed, 7 insertions, 3 deletions
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 >> \