From db9358008306b2c4ca2e9f972dd622111d21d83f Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 2 Jun 2022 17:00:31 +0900 Subject: [PATCH] Fix handling of signed repo db signature "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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.py b/update.py index 77ff1a3..c8d2f8b 100755 --- 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}"')