From 1302815438cfd596ffc43de51e2cf88297b17163 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 7 Nov 2016 13:38:22 +0100 Subject: reproducible Debian: explain what went wrong Signed-off-by: Holger Levsen --- 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 b6325214..7a01ef71 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" -- cgit v1.2.3-70-g09d2