Fix .db.sig symlink to be relative, not absolute
This commit is contained in:
parent
5bee6bb54d
commit
2320fac323
1 changed files with 4 additions and 1 deletions
|
@ -814,11 +814,14 @@ def update_pkg_list(
|
|||
text=True,
|
||||
env={"GNUPGHOME": signing_gpg_dir},
|
||||
)
|
||||
repo_sig_name = f"{repo}.sig"
|
||||
if repo_sig_name.rfind("/") != -1:
|
||||
repo_sig_name = repo_sig_name.rsplit(sep="/", maxsplit=1)[1]
|
||||
subprocess.run(
|
||||
[
|
||||
"/usr/bin/ln",
|
||||
"-sf",
|
||||
str(os.path.join(pkg_out_dir, f"{repo}.sig")),
|
||||
repo_sig_name,
|
||||
str(os.path.join(pkg_out_dir, f"{repo}")).removesuffix(".tar") + ".sig",
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue