From 1b801fa3c6b8f0d9788f76e4328ac3bd57eeb92e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 11 Jun 2017 13:38:43 +0200 Subject: bin/build-master-status: also count testing packages as done --- bin/build-master-status | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index fd1e8ec..a3fcb5e 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -37,16 +37,27 @@ looped_packages="$( wc -l )" -printf 'The mirror master contains %d stable packages (vs. ca. %d planned).\n' "${stable}" "$[${staging}+${testing}+${tasks}]" -printf 'The build list contains %d tasks (incl. broken: %d).\n' "$[${tasks}-${broken}]" "${tasks}" -printf 'There are %d testing and %d staging packages.\n' "${testing}" "${staging}" -printf 'There are %d broken packages.\n' "${broken}" +printf 'The mirror master contains %d stable packages (vs. ca. %d planned).\n' \ + "${stable}" \ + "$[${staging}+${testing}+${tasks}]" +printf 'The build list contains %d tasks (incl. broken: %d).\n' \ + "$[${tasks}-${broken}]" \ + "${tasks}" +printf 'There are %d testing and %d staging packages.\n' \ + "${testing}" \ + "${staging}" +printf 'There are %d broken packages.\n' \ + "${broken}" if [ "${loops}" -ne 0 ]; then - printf 'There are %d loops containing %d packages.\n' "${loops}" "${looped_packages}" + printf 'There are %d loops containing %d packages.\n' \ + "${loops}" \ + "${looped_packages}" fi -if [ $[${broken}+${staging}] -ne 0 ]; then - printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")" +if [ $[${broken}+${testing}+${staging}] -ne 0 ]; then + printf '%.1f%% of all packages are broken.\n' \ + "$(bc <<< "scale=10; 100*${broken}/(${broken}+${testing}+${staging})")" fi -if [ $[${staging}+${tasks}-${broken}] -ne 0 ]; then - printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")" +if [ $[${testing}+${staging}+${tasks}-${broken}] -ne 0 ]; then + printf '%.1f%% of the planned work has been done.\n' \ + "$(bc <<< "scale=10; 100*(${testing}+${staging})/(${testing}+${staging}+${tasks}-${broken})")" fi -- cgit v1.2.3-54-g00ecf