From 2320fac3230659c4e092ddade97ad28cfc017e9d Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 2 Jun 2022 17:16:49 +0900 Subject: [PATCH] Fix .db.sig symlink to be relative, not absolute --- update.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update.py b/update.py index f9f8afc..edd92b2 100755 --- a/update.py +++ b/update.py @@ -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", ] )