From fd72a88a68429121e42e7952f7e430e8941ba249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 24 Apr 2024 10:24:26 +0200 Subject: [PATCH] compat: Fix query_releng_location() --- compat/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compat/build.py b/compat/build.py index cd10018b3..1eb39a4ae 100644 --- a/compat/build.py +++ b/compat/build.py @@ -442,10 +442,10 @@ def quote(path: str) -> str: def query_releng_location(role: Role) -> Path: if role == "subproject": - candidate = REPO_ROOT.parent.parent - if (candidate / "releng").exists(): + candidate = REPO_ROOT.parent.parent / "releng" + if candidate.exists(): return candidate - return REPO_ROOT + return REPO_ROOT / "releng" def ensure_submodules_checked_out(releng_location: Path):