summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-03 14:29:09 +0200
committerErich Eckner <git@eckner.net>2017-08-03 14:29:09 +0200
commit2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda (patch)
treea631f3e521325837f02ff5da22b3402cbbdac54b /bin
parent13ee2eab0367bb6794c7cf380dbf7f954c06d9e9 (diff)
downloadbuilder-2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda.tar.xz
bin/build-master-status: do not print packages which would not be built in broken packages list on webserver
Diffstat (limited to 'bin')
-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}" > \