Fix handling of signed repo db signature
"REPONAME.db.sig" is automatically removed, so this commit adds a command to symlink it to "REPONAME.db.tar.sig" after signing "REPONAME.db.tar".
This commit is contained in:
parent
f38e97512c
commit
db93580083
1 changed files with 8 additions and 0 deletions
|
@ -814,6 +814,14 @@ def update_pkg_list(
|
||||||
text=True,
|
text=True,
|
||||||
env={"GNUPGHOME": signing_gpg_dir},
|
env={"GNUPGHOME": signing_gpg_dir},
|
||||||
)
|
)
|
||||||
|
subprocess.run(
|
||||||
|
[
|
||||||
|
"/usr/bin/ln",
|
||||||
|
"-sf",
|
||||||
|
str(os.path.join(pkg_out_dir, f"{repo}")),
|
||||||
|
str(os.path.join(pkg_out_dir, f"{repo}")).removesuffix("tar.sig") + ".sig",
|
||||||
|
]
|
||||||
|
)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
log_print(f'WARNING: Failed to sign "{repo}"')
|
log_print(f'WARNING: Failed to sign "{repo}"')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue