[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible Debian: explain what went wrong

Holger Levsen holger at layer-acht.org
Mon Nov 7 12:38:33 UTC 2016


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 1302815438cfd596ffc43de51e2cf88297b17163
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 7 13:38:22 2016 +0100

    reproducible Debian: explain what went wrong
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_create_meta_pkg_sets.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index b632521..7a01ef7 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -34,11 +34,15 @@ import yaml
 with open(sys.argv[1]) as fd:
 	manifest = yaml.load(fd)
 	seen = {}
-	for pkg in (manifest['packages']['binary'] + manifest['packages']['source']):
-		pkgname = pkg['package']
-		if not pkgname in seen:
-			print(pkgname, end='|')
-			seen[pkgname] = True
+	try:
+		for pkg in (manifest['packages']['binary'] + manifest['packages']['source']):
+			pkgname = pkg['package']
+			if not pkgname in seen:
+				print(pkgname, end='|')
+				seen[pkgname] = True
+	except:
+		print "Warning: something went wrong while parsing the build manifest as YAML file."
+
 EOF
 )
 	grep-dctrl -F Package -e '^('"$ALL_PKGS"')$' $packages > "$tmpfile"

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