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 698dbf2 Fix function order
698dbf2 is described below
commit 698dbf2af4b2deadbc5acbdc0643ecc0f0a4241f
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon May 19 15:58:12 2025 +0100
Fix function order
---
atr/routes/finish.py | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/atr/routes/finish.py b/atr/routes/finish.py
index 22648df..4c6b5ba 100644
--- a/atr/routes/finish.py
+++ b/atr/routes/finish.py
@@ -109,18 +109,6 @@ async def selected(
)
-def _related_files(path: pathlib.Path) -> list[pathlib.Path]:
- base_path = path.with_suffix("") if (path.suffix in SPECIAL_SUFFIXES) else
path
- parent_dir = base_path.parent
- name_without_ext = base_path.name
- return [
- parent_dir / name_without_ext,
- parent_dir / f"{name_without_ext}.asc",
- parent_dir / f"{name_without_ext}.sha256",
- parent_dir / f"{name_without_ext}.sha512",
- ]
-
-
async def _move_file(
form: MoveFileForm, session: routes.CommitterSession, project_name: str,
version_name: str
) -> tuple[quart_response.Response, int] | response.Response | None:
@@ -205,6 +193,18 @@ async def _move_file_to_revision(
return await session.redirect(selected, project_name=project_name,
version_name=version_name)
+def _related_files(path: pathlib.Path) -> list[pathlib.Path]:
+ base_path = path.with_suffix("") if (path.suffix in SPECIAL_SUFFIXES) else
path
+ parent_dir = base_path.parent
+ name_without_ext = base_path.name
+ return [
+ parent_dir / name_without_ext,
+ parent_dir / f"{name_without_ext}.asc",
+ parent_dir / f"{name_without_ext}.sha256",
+ parent_dir / f"{name_without_ext}.sha512",
+ ]
+
+
async def _sources_and_targets(latest_revision_dir: pathlib.Path) ->
tuple[list[pathlib.Path], set[pathlib.Path]]:
source_files_rel: list[pathlib.Path] = []
target_dirs: set[pathlib.Path] = {pathlib.Path(".")}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]