The hash extension should be upper cased

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-25 19:00:39 +00:00 committed by Pedro Algarvio
parent b59884b231
commit 07ee50d791

View file

@ -211,7 +211,7 @@ def generate_hashes(ctx: Context, files: list[pathlib.Path]):
if size == 0:
break # EOF
digest.update(view[:size])
digest_file_path = fpath.parent / f"{fpath.name}.{hash_name}"
digest_file_path = fpath.parent / f"{fpath.name}.{hash_name.upper()}"
hexdigest = digest.hexdigest()
ctx.info(f" * Writing {digest_file_path} ...")
digest_file_path.write_text(digest.hexdigest())