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 2350063 Ensure that incubator download URL previews are correct
2350063 is described below
commit 2350063591e20801acf8990010e00d57ca8420fe
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Jun 26 19:08:33 2025 +0100
Ensure that incubator download URL previews are correct
---
atr/routes/announce.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/atr/routes/announce.py b/atr/routes/announce.py
index 7363f0b..d2879c8 100644
--- a/atr/routes/announce.py
+++ b/atr/routes/announce.py
@@ -105,7 +105,11 @@ async def selected(session: routes.CommitterSession,
project_name: str, version_
announce_form.download_path_suffix.data = (
"/" if top_level_project else
f"/{release.project.name}-{release.version}/"
)
- description_download_prefix =
f"https://{config.get().APP_HOST}/downloads/{committee.name}"
+ # This must NOT end with a "/"
+ description_download_prefix = f"https://{config.get().APP_HOST}/downloads"
+ if committee.is_podling:
+ description_download_prefix += "/incubator"
+ description_download_prefix += f"/{committee.name}"
announce_form.download_path_suffix.description = f"The URL will be
{description_download_prefix} plus this suffix"
return await template.render(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]