Commit cc84a213 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: fixup (output based) calculation of the results, now that...


reproducible Debian: fixup (output based) calculation of the results, now that the output has changed

Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 273f2c75
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -50,9 +50,9 @@ reproducible_packages=
unreproducible_packages=

cleanup_all() {
	reproducible_packages=$(awk '/^REPRODUCIBLE:/{print $2}' $log)
	reproducible_packages=$(awk '/ REPRODUCIBLE: /{print $2}' $log)
	reproducible_count=$(echo $reproducible_packages | wc -w)
	unreproducible_packages=$(awk '/^UNREPRODUCIBLE:/{print $2}' $log)
	unreproducible_packages=$(awk '/ UNREPRODUCIBLE: /{print $2}' $log)
	unreproducible_count=$(echo $unreproducible_packages | wc -w)

	percent_repro=$(echo "scale=4 ; $reproducible_count / ($reproducible_count+$unreproducible_count) * 100" | bc)