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 fb9275e13a - Show all commits
+14 -3
View File
@@ -1318,10 +1318,21 @@ class ModernWowSetupTool(WowSetupTool):
exc, exc,
) )
else: else:
try:
remote_packages.install_cached_wowpresence(
target,
progress=self._report_download_progress,
)
except Exception as fallback_exc:
raise RuntimeError( raise RuntimeError(
"Could not install WowPresence from " "Could not install WowPresence from its online source "
"https://github.com/Dusk-92/WowPresence releases." "and no validated local fallback is available."
) from exc ) from fallback_exc
self._warn_offline(
"WowPresence",
"The last validated cached WowPresence package was installed instead.",
exc,
)
# Remove the old test-branch filenames after a successful # Remove the old test-branch filenames after a successful
# migration. The legacy config directory is intentionally # migration. The legacy config directory is intentionally