Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-11 13:38:43 +0200
committerErich Eckner <git@eckner.net>2017-06-11 13:38:43 +0200
commit1b801fa3c6b8f0d9788f76e4328ac3bd57eeb92e (patch)
treee626b008a02a601f2631949246f74147b9b14205 /bin/build-master-status
parent9696c882592a60370dfa448b6baf1ed59092e0d0 (diff)
bin/build-master-status: also count testing packages as done
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status29
1 files changed, 20 insertions, 9 deletions
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