mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't copy hash files
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
d8b5d2074e
commit
64280e9298
1 changed files with 10 additions and 0 deletions
|
@ -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} ...")
|
||||
|
|
Loading…
Add table
Reference in a new issue