From 5ffdaa11b73073c5658448691f1eb27ac1d1614e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 9 Sep 2015 14:39:30 +0200 Subject: reproducible: don't try to parse package list if its 404 --- bin/reproducible_create_meta_pkg_sets.sh | 10 +++++++--- 1 file changed, 7 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 da3c555e..c357aa95 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -285,9 +285,13 @@ update_pkg_sets() { if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[16]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[16]}.pkgset ] ; then curl http://nightly.tails.boum.org/build_Tails_ISO_feature-jessie/latest.iso.binpkgs > $TMPFILE curl http://nightly.tails.boum.org/build_Tails_ISO_feature-jessie/latest.iso.srcpkgs >> $TMPFILE - packages_list_to_deb822 - convert_from_deb822_into_source_packages_only - update_if_similar ${META_PKGSET[16]}.pkgset + if ! grep '404 Not Found' $TMPFILE ; then + packages_list_to_deb822 + convert_from_deb822_into_source_packages_only + update_if_similar ${META_PKGSET[16]}.pkgset + else + echo "Warning: could not download tail's latest packages file(s), skipping tails pkg set..." + fi fi # all build depends of tails -- cgit v1.2.3-54-g00ecf