Fix .db.sig symlink to be relative, not absolute

This commit is contained in:
Stephen Seo 2022-06-02 17:16:49 +09:00
parent 5bee6bb54d
commit 2320fac323

View file

@ -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",
] ]
) )