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,
|
text=True,
|
||||||
env={"GNUPGHOME": signing_gpg_dir},
|
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(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"/usr/bin/ln",
|
"/usr/bin/ln",
|
||||||
"-sf",
|
"-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",
|
str(os.path.join(pkg_out_dir, f"{repo}")).removesuffix(".tar") + ".sig",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue