summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-22 15:31:25 +0200
committerErich Eckner <git@eckner.net>2017-08-22 15:31:25 +0200
commit82b62d3f2f8770d41eb266a05005cbe589e266ee (patch)
tree0a6af374ca418e52b9ea8de5c291a1617b0533c3 /bin/build-master-status
parentf80eee9f97c2bdb4006874897ead78df0f3979db (diff)
downloadbuilder-82b62d3f2f8770d41eb266a05005cbe589e266ee.tar.xz
bin/build-master-status: include number of dependent packages on website
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index d474770..8c36c81 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -202,6 +202,7 @@ if [ $((${testing}+${staging}+${pending_packages}-${broken})) -ne 0 ]; then
fi
if ${web}; then
+ "${base_dir}/bin/calculate-dependent-packages"
(
printf '<html>\n<head>\n<title>Status of archlinux32 build master</title>\n</head>\n<body>\n'
sed 's|$|<br>|' "${tmp_dir}/build-master-status.html"
@@ -244,6 +245,7 @@ if ${web}; then
'modification git revision' \
'package repository' \
'compilations' \
+ 'dependent' \
'blocked' >> \
"${tmp_dir}/broken-packages.html"
printf '</tr>\n' >> \
@@ -264,6 +266,13 @@ if ${web}; then
"$(
ls -t "${webserver_directory}/build-logs" | \
grep -m1 "^$(str_to_regex "${sf}.")[^.]\+\.build-log\.gz\$"
+ )" \
+ "$(
+ (
+ grep -m1 "^$(str_to_regex "${sf}") " "${work_dir}/dependent-count" || \
+ echo 'x &nbsp;'
+ ) | \
+ cut -d' ' -f2
)"
if [ -f "${work_dir}/package-states/${sf}.blocked" ]; then
tr '\n' ' ' < "${work_dir}/package-states/${sf}.blocked" | \
@@ -274,7 +283,7 @@ if ${web}; then
printf '\n'
done | \
sort -k5n,5 | \
- while read -r pkg rev mod_rev repo count log_file reason; do
+ while read -r pkg rev mod_rev repo count log_file dependent reason; do
printf '<tr>'
printf '<td>%s</td>' \
'<a href="graphs/'"${pkg}"'.png">'"${pkg}"'</a>' \
@@ -282,6 +291,7 @@ if ${web}; then
"${mod_rev}" \
"${repo}" \
'<a href="build-logs/'"${log_file}"'">'"${count}"'</a>' \
+ "${dependent}" \
"${reason}"
printf '</tr>\n'
done >> \