From 2b84fd897b5b93a7856fa1aa6d31e450f6fd3cda Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 3 Aug 2017 14:29:09 +0200 Subject: bin/build-master-status: do not print packages which would not be built in broken packages list on webserver --- bin/build-master-status | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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 '\n\nbuild logs
\n\n' >> \ + printf '\n\nList of broken package builds\n\n\nbuild logs
\n
\n' >> \ "${tmp_dir}/broken-packages.html" printf '' \ '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 '
%s
\n\n\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}" > \ -- cgit v1.2.3-70-g09d2