Commit 2e9a6fc0 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: compare packages in Buster

parent 344c0508
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,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-unstable-diffoscope cat /var/lib/apt/lists/cdn-fastly.deb.debian.org_debian_dists_unstable_main_binary-amd64_Packages > $PACKAGES
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
packages="$(grep ^Package: $PACKAGES| awk '{print $2}' | sort | xargs echo)"

reproducible_packages=
@@ -84,7 +84,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-unstable-diffoscope apt-get download ${package} 2>&1 |xargs echo ) || continue
		( schroot --directory  $SHA1DIR/$pool_dir -c chroot:jenkins-reproducible-buster-diffoscope apt-get download ${package} 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}