[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: make timestamps meaningful

Holger Levsen gitlab at salsa.debian.org
Wed Feb 20 12:39:58 GMT 2019


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


Commits:
0a9ae21e by Holger Levsen at 2019-02-20T12:39:48Z
reproducible Debian: make timestamps meaningful

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
=====================================
@@ -72,9 +72,9 @@ cleanup_all() {
 trap cleanup_all INT TERM EXIT
 
 for package in $packages ; do
-	date -u
+	echo "$(date -u) - preparing to download binary package $package"
 	schroot --directory  $SHA1DIR -c chroot:jenkins-reproducible-unstable-diffoscope apt-get download ${package} || continue
-	date -u
+	echo "$(date -u) - checking if more than one .deb exists locally"
 	package_file="$(ls -1 ${package}_*.deb)"
 	if [ $(echo "${package_file}" | wc -l) -ne 1 ] ; then
 		OLD_DEB=$(echo "${package_file}" | head -1)
@@ -82,17 +82,17 @@ for package in $packages ; do
 		rm $OLD_DEB # first I thought to delete $OLD_DEB* but only deleting $OLD_DEB is better
 		package_file=$(echo "${package_file}" | tail -1 )
 	fi
-	date -u
+	echo "$(date -u) - gathering sha1sum"
 	if [ ! -e ${package_file}.sha1output ] ; then
 		SHA1SUM_PKG="$(sha1sum ${package_file} | tee ${package_file}.sha1output | awk '{print $1}' )"
 	else
 		SHA1SUM_PKG="$(cat ${package_file}.sha1output | awk '{print $1}' )"
 	fi
-	date -u
+	echo "$(date -u) - downloading .json from buildinfo.debian.net"
 	if [ ! -e ${package_file}.json ]; then
 		wget --quiet -O ${package_file}.json ${bdn_url}/${SHA1SUM_PKG}
 	fi
-	date -u
+	echo "$(date -u) - generating result"
 	count=$(fmt ${package_file}.json | grep -c '\.buildinfo' || true)
 	if [ "${count}" -ge 2 ]; then
 		echo "REPRODUCIBLE: $package_file: $SHA1SUM_PKG - reproduced $count times."



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/0a9ae21e9afdb1d01a8aabafd4bb441b1135dcbf
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/20190220/794aa779/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list