Unverified Commit bf3fb6c2 authored by Chris Lamb's avatar Chris Lamb 💬 Committed by Holger Levsen

reproducible Debian: no need for a dictionary; let's just use a set.

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent bc238848
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment