[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: make release name configurable

Holger Levsen gitlab at salsa.debian.org
Wed Feb 20 18:44:30 GMT 2019


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


Commits:
e34647a1 by Holger Levsen at 2019-02-20T18:44:21Z
reproducible Debian: make release name configurable

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
=====================================
@@ -30,6 +30,7 @@ echo
 echo 'this is an early prototype...'
 echo
 echo
+RELEASE=buster
 
 bdn_url="https://buildinfo.debian.net/api/v1/buildinfos/checksums/sha1"
 log=$(mktemp --tmpdir=$TMPDIR sha1-comp-XXXXXXX)
@@ -40,7 +41,7 @@ cd $SHA1DIR
 
 # downloading (and keeping) all the packages is also too much, but let's prototype this... (and improve later)
 PACKAGES=$(mktemp --tmpdir=$TMPDIR sha1-comp-XXXXXXX)
-schroot --directory  $SHA1DIR -c chroot:jenkins-reproducible-buster-diffoscope cat /var/lib/apt/lists/cdn-fastly.deb.debian.org_debian_dists_buster_main_binary-amd64_Packages > $PACKAGES
+schroot --directory  $SHA1DIR -c chroot:jenkins-reproducible-${RELEASE}-diffoscope cat /var/lib/apt/lists/cdn-fastly.deb.debian.org_debian_dists_${RELEASE}_main_binary-amd64_Packages > $PACKAGES
 packages="$(grep ^Package: $PACKAGES| awk '{print $2}' | sort | xargs echo)"
 
 reproducible_packages=
@@ -84,7 +85,7 @@ for package in $packages ; do
 	cd $pool_dir
 	if [ ! -e ${package_file}.sha1output ] ; then
 		echo -n "$(date -u) - preparing to download $filename"
-		( schroot --directory  $SHA1DIR/$pool_dir -c chroot:jenkins-reproducible-buster-diffoscope apt-get download ${package} 2>&1 |xargs echo ) || continue
+		( schroot --directory  $SHA1DIR/$pool_dir -c chroot:jenkins-reproducible-${RELEASE}-diffoscope apt-get download ${package}/${RELEASE} 2>&1 |xargs echo ) || continue
 		echo "$(date -u) - calculating sha1sum"
 		SHA1SUM_PKG="$(sha1sum ${package_file} | tee ${package_file}.sha1output | awk '{print $1}' )"
 		rm ${package_file}



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

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


More information about the Qa-jenkins-scm mailing list