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 c611c8c Remove accidental top level incubator directories correctly
c611c8c is described below
commit c611c8ca7398c26f8103dcf43b9c4a3b369fe206
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Jun 18 14:25:15 2025 +0100
Remove accidental top level incubator directories correctly
---
atr/blueprints/admin/admin.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/atr/blueprints/admin/admin.py b/atr/blueprints/admin/admin.py
index 7225fcd..e2179a7 100644
--- a/atr/blueprints/admin/admin.py
+++ b/atr/blueprints/admin/admin.py
@@ -380,6 +380,7 @@ async def admin_keys_regenerate_all() -> quart.Response:
msg += f"\nFailures:\n{'\n'.join(failures)}"
return quart.Response(msg, mimetype="text/plain")
except Exception as e:
+ _LOGGER.exception("Exception during KEYS file regeneration:")
return quart.Response(f"Exception during KEYS file regeneration:
{e!s}", mimetype="text/plain")
@@ -770,7 +771,7 @@ async def _regenerate_keys_all() -> tuple[int, list[str]]:
if committee.is_podling:
if await aiofiles.os.path.isdir(downloads_dir /
committee.name):
# Accidental top level directory, so remove it
- await aiofiles.os.rmdir(downloads_dir / committee.name)
+ await aioshutil.rmtree(downloads_dir / committee.name)
return okay, failures
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]