summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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"