summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index e0836ccc..46621869 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -33,13 +33,13 @@ import sys
import yaml
with open(sys.argv[1]) as fd:
manifest = yaml.load(fd)
- seen = {}
+ seen = set()
try:
for pkg in (manifest['packages']['binary'] + manifest['packages']['source']):
pkgname = pkg['package']
if pkgname not in seen:
print(pkgname, end='|')
- seen[pkgname] = True
+ seen.add(pkgname)
except Exception as exc:
print("Warning: something went wrong while parsing the build manifest as YAML file: {}".format(exc))