From fc48e13a42f74c8919a463edfed3186456db5b5d Mon Sep 17 00:00:00 2001 From: a-kenji Date: Thu, 28 Jul 2022 00:30:01 +0200 Subject: [PATCH] fix(translator): debian-binary use correct sha format --- .../translators/debian-binary/generate_dream_lock.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/subsystems/debian/translators/debian-binary/generate_dream_lock.py b/src/subsystems/debian/translators/debian-binary/generate_dream_lock.py index f57d5b13..a0623f29 100644 --- a/src/subsystems/debian/translators/debian-binary/generate_dream_lock.py +++ b/src/subsystems/debian/translators/debian-binary/generate_dream_lock.py @@ -37,17 +37,18 @@ def main(): sha256 = f"sha256-{decode}" print(f"uri {uri}, deb: {deb}") (name, version, _) = deb.split("_") - dream_lock["sources"][name] = { + dream_lock["sources"][f"{name}"] = { version: dict( type="http", url=uri.replace("http:", "https:").replace("'", ""), - sha256=sha256, + hash=sha256, + version=version, ) } # add the version of the root package dream_lock["_generic"]["packages"][os.environ.get("NAME")] = list( - dream_lock["sources"]["htop"].keys() + dream_lock["sources"][os.environ.get("NAME")].keys() )[0] # dump dream lock to $ouputFile