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-releases.git
The following commit(s) were added to refs/heads/main by this push:
new e0d48ca Use the committee name for SVN import URLs
e0d48ca is described below
commit e0d48cafd9af7b28a72a20c3cee1318721cc464c
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Dec 31 21:00:41 2025 +0000
Use the committee name for SVN import URLs
---
atr/post/upload.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/atr/post/upload.py b/atr/post/upload.py
index 7908bbb..1fd75d2 100644
--- a/atr/post/upload.py
+++ b/atr/post/upload.py
@@ -172,10 +172,10 @@ async def _add_files(
)
-def _construct_svn_url(project_name: str, area: shared.upload.SvnArea, path:
str, *, is_podling: bool) -> str:
+def _construct_svn_url(committee_name: str, area: shared.upload.SvnArea, path:
str, *, is_podling: bool) -> str:
if is_podling:
- return f"{_SVN_BASE_URL}/{area.value}/incubator/{project_name}/{path}"
- return f"{_SVN_BASE_URL}/{area.value}/{project_name}/{path}"
+ return
f"{_SVN_BASE_URL}/{area.value}/incubator/{committee_name}/{path}"
+ return f"{_SVN_BASE_URL}/{area.value}/{committee_name}/{path}"
def _json_error(message: str, status: int) -> web.WerkzeugResponse:
@@ -197,9 +197,10 @@ async def _svn_import(
async with db.session() as data:
release = await session.release(project_name, version_name,
data=data)
is_podling = (release.project.committee is not None) and
release.project.committee.is_podling
+ committee_name = release.project.committee_name or project_name
svn_url = _construct_svn_url(
- project_name,
+ committee_name,
svn_area, # pyright: ignore[reportArgumentType]
svn_path,
is_podling=is_podling,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]