summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-07 13:38:22 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-07 13:38:25 +0100
commit1302815438cfd596ffc43de51e2cf88297b17163 (patch)
treeff63e1a6abd3ebe525e2867f5b9b2fb2b7415a67
parent909d59f7e1a7d3af59113954070c9517b63883d4 (diff)
downloadjenkins.debian.net-1302815438cfd596ffc43de51e2cf88297b17163.tar.xz
reproducible Debian: explain what went wrong
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh14
1 files 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"