Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ def arguments_or_exit(tool: str, argv: list[str], help_text: str, usage: str, re
return arguments
def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
def projects_on(model: str, home: pathlib.Path, env: typing.Mapping[str, str]) -> list[str] | Failure:
"""The keys of the projects build-release's models file, under home, runs on model, sorted."""
models = read_models_file(paths_from(home).models_file)
models = read_models_file(paths_from(home, env).models_file)
if isinstance(models, Failure):
return models
return sorted(key for key, on in models.items() if on == model)