Don't copy hash files

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-02-04 19:46:41 +00:00 committed by Pedro Algarvio
parent d8b5d2074e
commit 64280e9298

View file

@ -731,8 +731,18 @@ def _create_onedir_based_repo(
if salt_version not in repo_json:
repo_json[salt_version] = {}
hash_suffixes = (
".blake2b",
".sha512",
".sha3_512",
".BLAKE2B",
".SHA512",
".SHA3_512",
)
hashes_base_path = create_repo_path / f"salt-{salt_version}"
for fpath in incoming.iterdir():
if fpath.suffix in hash_suffixes:
continue
ctx.info(f"* Processing {fpath} ...")
dpath = create_repo_path / fpath.name
ctx.info(f"Copying {fpath} to {dpath} ...")