[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: include sha1sums in output

Holger Levsen gitlab at salsa.debian.org
Tue Feb 19 23:12:04 GMT 2019


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


Commits:
6cfe8341 by Holger Levsen at 2019-02-19T23:11:55Z
reproducible Debian: include sha1sums in 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
=====================================
@@ -14,6 +14,7 @@
 echo
 echo
 echo 'this is an early prototype...'
+set -e
 echo
 echo
 
@@ -32,15 +33,17 @@ unreproducible_packages=
 
 for package in $packages ; do
 	schroot --directory  $SHA1DIR -c chroot:jenkins-reproducible-unstable-diffoscope apt-get download ${package}
-	sha1sum ${package}_*.deb | while read checksum package_file ; do
+	SHA1SUM_OUTPUT="$(sha1sum ${package}_*.deb)"
+	SHA1SUM_PKG="$(echo $SHA1SUM_OUTPUT | awk '{print $1}'"
+	echo "$SHA1SUM_OUTPUT" | while read checksum package_file ; do
 		if [ ! -e ${package_file}.json ]; then
 			wget --quiet -O ${package_file}.json ${bdn_url}/${checksum}
 		fi
 		count=$(fmt ${package_file}.json | grep '\.buildinfo' | wc -l)
 		if [ "${count}" -ge 2 ]; then
-			echo "REPRODUCIBLE: $package_file $count"
+			echo "REPRODUCIBLE: $package_file $count ($SHA1SUM_PKG)"
 		else
-			echo "UNREPRODUCIBLE: $package_file $count"
+			echo "UNREPRODUCIBLE: $package_file $count ($SHA1SUM_PKG on ftp.debian.org)"
 		fi
 		echo
 	done



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/6cfe8341af16804c04557dbb60f57bda23e0ea22

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/6cfe8341af16804c04557dbb60f57bda23e0ea22
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/20190219/1f6583b4/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list