From 00b64a9e83c86623fc8026bf7a21c81b3c0bd8ac Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 7 Nov 2016 13:27:59 +0000 Subject: reproducible Debian: no need to wrap the bits that won't fail in the try-except. Signed-off-by: Holger Levsen --- bin/reproducible_create_meta_pkg_sets.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh index 38b27fba..c9530497 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -34,15 +34,16 @@ import yaml try: with open(sys.argv[1]) as fd: manifest = yaml.load(fd) - seen = set() - for pkg in (manifest['packages']['binary'] + manifest['packages']['source']): - pkgname = pkg['package'] - if pkgname not in seen: - print(pkgname, end='|') - seen.add(pkgname) except Exception as exc: print("Warning: something went wrong while parsing the build manifest as YAML file: {}".format(exc)) - + sys.exit(0) + +seen = set() +for pkg in (manifest['packages']['binary'] + manifest['packages']['source']): + pkgname = pkg['package'] + if pkgname not in seen: + print(pkgname, end='|') + seen.add(pkgname) EOF ) grep-dctrl -F Package -e '^('"$ALL_PKGS"')$' $packages > "$tmpfile" -- cgit v1.2.3-54-g00ecf