index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-08-03 14:29:09 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-03 14:29:09 +0200 |
commit | 2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda (patch) | |
tree | a631f3e521325837f02ff5da22b3402cbbdac54b /bin | |
parent | 13ee2eab0367bb6794c7cf380dbf7f954c06d9e9 (diff) |
-rwxr-xr-x | bin/build-master-status | 6 |
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}" > \ |