This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 42ef6a5 Update the logic for the missing KEYS file warning
42ef6a5 is described below
commit 42ef6a56e26ccc96364a20d9fd37bf583eb645cb
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jun 17 19:04:05 2025 +0100
Update the logic for the missing KEYS file warning
---
atr/routes/voting.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/atr/routes/voting.py b/atr/routes/voting.py
index cf3563c..f366b94 100644
--- a/atr/routes/voting.py
+++ b/atr/routes/voting.py
@@ -202,7 +202,10 @@ async def _keys_warning(
release: models.Release,
) -> bool:
"""Return a warning about keys if there are any issues."""
- keys_file_path = util.get_finished_dir() / release.project.name / "KEYS"
+ if release.committee is None:
+ raise base.ASFQuartException("Release has no associated committee",
errorcode=400)
+
+ keys_file_path = util.get_downloads_dir() / release.committee.name / "KEYS"
return not await aiofiles.os.path.isfile(keys_file_path)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]