Add offline fallbacks for remote components #9

Merged
Dusk-92 merged 101 commits from test/remote-fallbacks into main 2026-09-04 15:03:01 +00:00
Showing only changes of commit c304cd0542 - Show all commits
+18 -6
View File
@@ -1451,14 +1451,26 @@ class ModernWowSetupTool(WowSetupTool):
target,
progress=self._report_download_progress,
)
except Exception as fallback_exc:
raise RuntimeError(
"Could not install WowPresence from its online source "
"and no validated local fallback is available."
) from fallback_exc
fallback_action = (
"The last validated cached WowPresence package was installed instead."
)
except Exception:
try:
remote_packages.install_bundled_wowpresence(
target,
progress=self._report_download_progress,
)
fallback_action = (
"The bundled known-good WowPresence fallback was installed instead."
)
except Exception as bundled_exc:
raise RuntimeError(
"Could not install WowPresence from its online source, "
"local cache or bundled fallback."
) from bundled_exc
self._warn_offline(
"WowPresence",
"The last validated cached WowPresence package was installed instead.",
fallback_action,
exc,
)