From 82b62d3f2f8770d41eb266a05005cbe589e266ee Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 22 Aug 2017 15:31:25 +0200 Subject: bin/build-master-status: include number of dependent packages on website --- bin/build-master-status | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin/build-master-status') 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 '\n\nStatus of archlinux32 build master\n\n\n' sed 's|$|
|' "${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 '\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  ' + ) | \ + 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 '' printf '%s' \ ''"${pkg}"'' \ @@ -282,6 +291,7 @@ if ${web}; then "${mod_rev}" \ "${repo}" \ ''"${count}"'' \ + "${dependent}" \ "${reason}" printf '\n' done >> \ -- cgit v1.2.3-54-g00ecf