Commit 084f95eb authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: add support for looping in different orderings

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 2ca84a97
......@@ -32,6 +32,7 @@ echo 'this is an early prototype...'
echo
echo
RELEASE=buster
MODE="$1"
bdn_url="https://buildinfo.debian.net/api/v1/buildinfos/checksums/sha1"
log=$(mktemp --tmpdir=$TMPDIR sha1-comp-XXXXXXX)
......@@ -42,7 +43,12 @@ cd $SHA1DIR
PACKAGES=$(mktemp --tmpdir=$TMPDIR sha1-comp-XXXXXXX)
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)"
case MODE in
random) SORT="sort -R";;
reverse) SORT="sort -r" ;;
*) SORT="sort" ;;
esac
packages="$(grep ^Package: $PACKAGES| awk '{print $2}' | $SORT | xargs echo)"
reproducible_packages=
unreproducible_packages=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment