[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: calculate sha1sums of binaries from ftp.d.o only once

Holger Levsen gitlab at salsa.debian.org
Tue Feb 19 23:30:32 GMT 2019


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


Commits:
cb26a5f6 by Holger Levsen at 2019-02-19T23:30:19Z
reproducible Debian: calculate sha1sums of binaries from ftp.d.o only once

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
=====================================
@@ -3,6 +3,7 @@
 # as posted by Vagrant on https://lists.reproducible-builds.org/pipermail/rb-general/2018-October/001239.html
 
 # TODOs:
+# - ${package_file}.sha1output includes ${package_file} in the file name and contents
 # - run on osuoslXXX ? harder with using db..
 # - delete downloaded packages, keep sha1s, use them
 # - save results in db
@@ -33,7 +34,11 @@ unreproducible_packages=
 
 for package in $packages ; do
 	schroot --directory  $SHA1DIR -c chroot:jenkins-reproducible-unstable-diffoscope apt-get download ${package}
-	SHA1SUM_OUTPUT="$(sha1sum ${package}_*.deb)"
+	if [ ! -e ${package_file}.sha1output ] ; then
+		SHA1SUM_OUTPUT="$(sha1sum ${package}_*.deb | tee ${package_file}.sha1output)"
+	else
+		SHA1SUM_OUTPUT="$(cat ${package_file}.sha1output)"
+	fi
 	SHA1SUM_PKG="$(echo $SHA1SUM_OUTPUT | awk '{print $1}')"
 	echo "$SHA1SUM_OUTPUT" | while read checksum package_file ; do
 		if [ ! -e ${package_file}.json ]; then



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/cb26a5f6869acd02b9c402f17c384ed8476c8f87
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/cdacafd3/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list