]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix .db.sig symlink to be relative, not absolute
authorStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 08:16:49 +0000 (17:16 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 08:16:49 +0000 (17:16 +0900)
update.py

index f9f8afcee080a633577b17cdf805f3ca10492db5..edd92b2c956f8bbadc1a092941dc6f1e08416911 100755 (executable)
--- 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",
                 ]
             )