From: Stephen Seo Date: Thu, 2 Jun 2022 08:16:49 +0000 (+0900) Subject: Fix .db.sig symlink to be relative, not absolute X-Git-Url: https://git.seodisparate.com/tbm-server-edit-damage-sources-set.png?a=commitdiff_plain;h=2320fac3230659c4e092ddade97ad28cfc017e9d;p=AnotherAURHelper Fix .db.sig symlink to be relative, not absolute --- 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", ] )