]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix handling of signed repo db signature
authorStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 08:00:31 +0000 (17:00 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 08:00:31 +0000 (17:00 +0900)
"REPONAME.db.sig" is automatically removed, so this commit adds a
command to symlink it to "REPONAME.db.tar.sig" after signing
"REPONAME.db.tar".

update.py

index 77ff1a31812296bf3c22dc81b622c26da18ab161..c8d2f8b6e9b37fc974c1f2f372888bf457098dba 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -814,6 +814,14 @@ def update_pkg_list(
                 text=True,
                 env={"GNUPGHOME": signing_gpg_dir},
             )
+            subprocess.run(
+                [
+                    "/usr/bin/ln",
+                    "-sf",
+                    str(os.path.join(pkg_out_dir, f"{repo}")),
+                    str(os.path.join(pkg_out_dir, f"{repo}")).removesuffix("tar.sig") + ".sig",
+                ]
+            )
         except subprocess.CalledProcessError:
             log_print(f'WARNING: Failed to sign "{repo}"')