WIP: Test smart remote update checks #6

Closed
Dusk-92 wants to merge 12 commits from test/smart-update-checks into test/discord-presence-details
Showing only changes of commit 436b13dba0 - Show all commits
+6
View File
@@ -1725,6 +1725,12 @@ class WowSetupTool:
# is enough to trigger one fresh download when a source/version changes. # is enough to trigger one fresh download when a source/version changes.
for key, managed_id, display_name, installer in visual_defs: for key, managed_id, display_name, installer in visual_defs:
if self.visual_mods[key].get(): if self.visual_mods[key].get():
# Hosted static mirrors use explicit revisions and can be
# skipped without any network request. Pink Herbs follows a
# GitHub branch, so its installer performs a lightweight
# branch-SHA check before deciding whether a download is
# needed.
if key != "pink_herbs":
revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id] revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id]
if remote_packages.managed_mpq_is_current( if remote_packages.managed_mpq_is_current(
target, target,