WIP: Test smart remote update checks #6
+13
-7
@@ -1725,13 +1725,19 @@ 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():
|
||||||
revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id]
|
# Hosted static mirrors use explicit revisions and can be
|
||||||
if remote_packages.managed_mpq_is_current(
|
# skipped without any network request. Pink Herbs follows a
|
||||||
target,
|
# GitHub branch, so its installer performs a lightweight
|
||||||
managed_id,
|
# branch-SHA check before deciding whether a download is
|
||||||
revision,
|
# needed.
|
||||||
):
|
if key != "pink_herbs":
|
||||||
continue
|
revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id]
|
||||||
|
if remote_packages.managed_mpq_is_current(
|
||||||
|
target,
|
||||||
|
managed_id,
|
||||||
|
revision,
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
installer(target, progress=progress)
|
installer(target, progress=progress)
|
||||||
|
|||||||
Reference in New Issue
Block a user