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