index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-11 13:38:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-11 13:38:43 +0200 |
commit | 1b801fa3c6b8f0d9788f76e4328ac3bd57eeb92e (patch) | |
tree | e626b008a02a601f2631949246f74147b9b14205 /bin/build-master-status | |
parent | 9696c882592a60370dfa448b6baf1ed59092e0d0 (diff) |
-rwxr-xr-x | bin/build-master-status | 29 |
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 |