Skip to content

Commit

Permalink
compat: Fix query_releng_location()
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Apr 24, 2024
1 parent 98c8b62 commit fd72a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compat/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fd72a88

Please sign in to comment.