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 b0394ac662 - Show all commits
+6 -1
View File
@@ -1719,6 +1719,11 @@ class WowSetupTool:
), ),
] ]
# MPQ fallbacks were intentionally removed. Clean caches created by
# earlier test builds so they cannot be reused later.
for _, managed_id, _, _ in visual_defs:
remote_packages.remove_package_cache(target, managed_id)
try: try:
# Visual installers own their current-version checks. # Visual installers own their current-version checks.
# Already valid MPQs are reused without a download. # Already valid MPQs are reused without a download.
@@ -1727,7 +1732,7 @@ class WowSetupTool:
try: try:
installer(target, progress=progress) installer(target, progress=progress)
except Exception as exc: except Exception as exc:
if remote_packages.managed_mod_is_installed(target, managed_id): if remote_packages.managed_mpq_is_usable(target, managed_id):
warnings.append( warnings.append(
f"{display_name}: update source unavailable; existing installed copy kept." f"{display_name}: update source unavailable; existing installed copy kept."
) )