Commit 5a50d32f authored by Holger Levsen's avatar Holger Levsen

reproducible Debian sha1 checker: improve output

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 38bf9944
......@@ -75,12 +75,12 @@ cleanup_all() {
reproducible_count=$(echo $reproducible_packages | wc -w)
unreproducible_packages=$(awk '/ UNREPRODUCIBLE: /{print $9}' $log)
unreproducible_count=$(echo $unreproducible_packages | wc -w)
reproducible_binnmu=$((find $SHA1DIR -type f | egrep -c '+b._(all|amd64).deb.REPRODUCIBLE.buster') || echo 0)
unreproducible_binnmu=$((find $SHA1DIR -type f | egrep -c '+b._(all|amd64).deb.UNREPRODUCIBLE.buster') || echo 0)
reproducible_arch_all=$((find $SHA1DIR -type f | egrep -c '_all.deb.REPRODUCIBLE.buster') || echo 0)
unreproducible_arch_all=$((find $SHA1DIR -type f | egrep -c '_all.deb.UNREPRODUCIBLE.buster') || echo 0)
reproducible_arch_amd64=$((find $SHA1DIR -type f | egrep -c '_amd64.deb.REPRODUCIBLE.buster') || echo 0)
unreproducible_arch_amd64=$((find $SHA1DIR -type f | egrep -c '_amd64.deb.UNREPRODUCIBLE.buster') || echo 0)
reproducible_binnmu=$((find $SHA1DIR -type f || echo ) | egrep -c '+b._(all|amd64).deb.REPRODUCIBLE.buster' || true)
unreproducible_binnmu=$((find $SHA1DIR -type f || echo ) | egrep -c '+b._(all|amd64).deb.UNREPRODUCIBLE.buster' || true)
reproducible_arch_all=$((find $SHA1DIR -type f || echo ) | egrep -c '_all.deb.REPRODUCIBLE.buster' || true)
unreproducible_arch_all=$((find $SHA1DIR -type f || echo ) | egrep -c '_all.deb.UNREPRODUCIBLE.buster' || true)
reproducible_arch_amd64=$((find $SHA1DIR -type f || echo ) | egrep -c '_amd64.deb.REPRODUCIBLE.buster' || true)
unreproducible_arch_amd64=$((find $SHA1DIR -type f || echo ) | egrep -c '_amd64.deb.UNREPRODUCIBLE.buster' || true)
percent_unknown=$(echo "scale=4 ; $unknown_count / ($reproducible_count+$unreproducible_count+$unknown_count) * 100" | bc)
percent_repro=$(echo "scale=4 ; $reproducible_count / ($reproducible_count+$unreproducible_count+$unknown_count) * 100" | bc)
percent_unrepro=$(echo "scale=4 ; $unreproducible_count / ($reproducible_count+$unreproducible_count+$unknown_count) * 100" | bc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment