From: Stephen Seo Date: Thu, 2 Jun 2022 08:00:31 +0000 (+0900) Subject: Fix handling of signed repo db signature X-Git-Url: https://git.seodisparate.com/stephenseo/js/bootstrap.bundle.min.js?a=commitdiff_plain;h=db9358008306b2c4ca2e9f972dd622111d21d83f;p=AnotherAURHelper 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". --- 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}"')