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".
This commit is contained in:
Stephen Seo 2022-06-02 17:00:31 +09:00
parent f38e97512c
commit db93580083

View file

@ -814,6 +814,14 @@ def update_pkg_list(
text=True, text=True,
env={"GNUPGHOME": signing_gpg_dir}, 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: except subprocess.CalledProcessError:
log_print(f'WARNING: Failed to sign "{repo}"') log_print(f'WARNING: Failed to sign "{repo}"')