[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian sha1 checker: improve output

Holger Levsen gitlab at salsa.debian.org
Fri Mar 1 18:03:24 GMT 2019


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
5a50d32f by Holger Levsen at 2019-03-01T18:03:15Z
reproducible Debian sha1 checker: improve output

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_compare_Debian_sha1sums.sh


Changes:

=====================================
bin/reproducible_compare_Debian_sha1sums.sh
=====================================
@@ -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)



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/5a50d32f919875befdbd8b4d7b0e454f8810160c

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/5a50d32f919875befdbd8b4d7b0e454f8810160c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190301/b0a70dc7/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list