From de5347bea71386182caccbabee74cfdbde631b1c Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 17 May 2016 09:55:22 +0000 Subject: Add support for the new Tails build manifest format. --- bin/reproducible_create_meta_pkg_sets.sh | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_create_meta_pkg_sets.sh') diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh index 6719c7f1..a73b19af 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -25,6 +25,25 @@ packages_list_to_deb822() { grep-dctrl -F Package -e '^('"$ALL_PKGS"')$' $PACKAGES > $TMPFILE } +tails_build_manifest_to_deb822() { + tmpfile="$1" + packages="$2" + ALL_PKGS=$(python3 - "$tmpfile" < "$tmpfile" +} + convert_from_deb822_into_source_packages_only() { # given a Packages file in deb822 format on standard input, the # following perl "oneliner" outputs the associated (unversioned) @@ -373,11 +392,10 @@ update_pkg_sets() { # tails if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[20]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[20]}.pkgset ] ; then - curl http://nightly.tails.boum.org/build_Tails_ISO_feature-stretch/lastSuccessful/archive/latest.iso.binpkgs > $TMPFILE - curl http://nightly.tails.boum.org/build_Tails_ISO_feature-stretch/lastSuccessful/archive/latest.iso.srcpkgs >> $TMPFILE + curl http://nightly.tails.boum.org/build_Tails_ISO_feature-stretch/lastSuccessful/archive/latest.iso.build-manifest > $TMPFILE if ! grep '404 Not Found' $TMPFILE ; then echo "parsing $TMPFILE now..." - packages_list_to_deb822 + tails_build_manifest_to_deb822 "$TMPFILE" "$PACKAGES" convert_from_deb822_into_source_packages_only update_if_similar ${META_PKGSET[20]}.pkgset else -- cgit v1.2.3-70-g09d2