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 a5a07d9 Report broken directories correctly on the consistency page
for admins
a5a07d9 is described below
commit a5a07d99e324d96b99cf0f91be39afda2a53f8e1
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jun 10 15:51:30 2025 +0100
Report broken directories correctly on the consistency page for admins
---
atr/blueprints/admin/admin.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/atr/blueprints/admin/admin.py b/atr/blueprints/admin/admin.py
index 7180b9e..a3a6f4c 100644
--- a/atr/blueprints/admin/admin.py
+++ b/atr/blueprints/admin/admin.py
@@ -106,8 +106,7 @@ async def admin_consistency() -> quart.Response:
database_dirs = []
for release in releases:
path = util.release_directory_version(release)
- if await aiofiles.os.path.exists(path):
- database_dirs.append(str(path))
+ database_dirs.append(str(path))
if len(set(database_dirs)) != len(database_dirs):
raise base.ASFQuartException("Duplicate release directories in
database", errorcode=500)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]