[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: don't try to parse package list if its 404

Holger Levsen holger at moszumanska.debian.org
Wed Sep 9 12:40:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 5ffdaa11b73073c5658448691f1eb27ac1d1614e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Sep 9 14:39:30 2015 +0200

    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(-)

diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index da3c555..c357aa9 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 '<title>404 Not Found</title>' $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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list