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:
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index dd04c49..6fa28b8 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -231,7 +231,7 @@ if ${web}; then
tac > \
"${tmp_dir}/statistics"
- printf '<html>\n<body>\n<a href="build-logs/">build logs</a><br>\n<table>\n<tr>' >> \
+ printf '<html>\n<head>\n<title>List of broken package builds</title>\n</head>\n<body>\n<a href="build-logs/">build logs</a><br>\n<table>\n<tr>' >> \
"${tmp_dir}/broken-packages.html"
printf '<th>%s</th>' \
'package' \
@@ -247,6 +247,8 @@ if ${web}; then
grep '\.broken$' | \
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
printf '%s ' \
"${pkg}" \
@@ -278,6 +280,8 @@ if ${web}; then
printf '</table>\n</body>\n</html>\n' >> \
"${tmp_dir}/broken-packages.html"
+ rm -f "${tmp_dir}/broken-packages-names"
+
ls "${tmp_dir}" | \
while read -r file; do
cat "${tmp_dir}/${file}" > \