Added umu download and repair for missing components on install, update and manual repair.

This commit is contained in:
2026-09-02 21:42:49 +02:00
parent 6f20b5e359
commit 7ce6ac3dd7
9 changed files with 660 additions and 40 deletions

View File

@@ -65,7 +65,7 @@ def inspect_runtime_debug(
paths: AppPaths,
settings: Settings,
*,
selector: RuntimeSelector = select_runtime,
selector: RuntimeSelector | None = None,
sync_resolver: SyncResolver = resolve_proton_sync_mode,
) -> RuntimeDebugInfo:
"""Resolve the next runtime and compare it with the preparation marker."""
@@ -85,7 +85,11 @@ def inspect_runtime_debug(
selection: RuntimeSelection | None = None
error: str | None = None
try:
selection = selector(settings)
selection = (
select_runtime(settings, paths=paths)
if selector is None
else selector(settings)
)
except (OSError, RuntimeErrorPT, ValueError) as exc:
error = str(exc).strip() or type(exc).__name__
selected_kind = selection.kind if selection is not None else None