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 b75c9cc  Ensure that KEYS files are correctly detected for incubator 
releases
b75c9cc is described below

commit b75c9ccae28b6a921d6eb79c8c9289f706baf737
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jun 30 18:45:36 2025 +0100

    Ensure that KEYS files are correctly detected for incubator releases
---
 atr/routes/voting.py                        | 5 ++++-
 atr/templates/voting-selected-revision.html | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/atr/routes/voting.py b/atr/routes/voting.py
index 6c0d007..2840ba1 100644
--- a/atr/routes/voting.py
+++ b/atr/routes/voting.py
@@ -167,7 +167,10 @@ async def _keys_warning(
     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"
+    if release.committee.is_podling:
+        keys_file_path = util.get_downloads_dir() / "incubator" / 
release.committee.name / "KEYS"
+    else:
+        keys_file_path = util.get_downloads_dir() / release.committee.name / 
"KEYS"
     return not await aiofiles.os.path.isfile(keys_file_path)
 
 
diff --git a/atr/templates/voting-selected-revision.html 
b/atr/templates/voting-selected-revision.html
index 43857f9..b145ff3 100644
--- a/atr/templates/voting-selected-revision.html
+++ b/atr/templates/voting-selected-revision.html
@@ -42,7 +42,7 @@
       <i class="bi bi-exclamation-triangle-fill"></i>
       <strong>Warning:</strong>
       The KEYS file is missing.
-      Please autogenerate one on the <a href="{{ as_url(routes.keys.keys, 
project_name=release.project.name) }}#committee-{{ 
release.committee.name|slugify }}">KEYS page</a>.
+      Please autogenerate one on the <a href="{{ as_url(routes.keys.keys) 
}}#committee-{{ release.committee.name|slugify }}">KEYS page</a>.
     </div>
   {% endif %}
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to