summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2016-11-07 13:27:59 +0000
committerHolger Levsen <holger@layer-acht.org>2016-11-07 18:11:10 +0100
commit00b64a9e83c86623fc8026bf7a21c81b3c0bd8ac (patch)
tree931234a8727793128c73f1b7e8429c7a5e2c0a48
parent0e4f501c0ec4e3a5c59adde9df4bb2d97bb71285 (diff)
downloadjenkins.debian.net-00b64a9e83c86623fc8026bf7a21c81b3c0bd8ac.tar.xz
reproducible Debian: no need to wrap the bits that won't fail in the try-except.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh15
1 files 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"