[core] Don't request delta manifest if old == new

This commit is contained in:
derrod 2020-09-06 06:18:43 +02:00
parent a55f75d5e8
commit 9c9fee8f11

View file

@ -702,7 +702,8 @@ class LegendaryCore:
self.lgd.save_manifest(game.app_name, new_manifest_data,
version=new_manifest.meta.build_version)
# also fetch optimized delta manifest (may not exist)
if old_manifest and new_manifest and not (override_old_manifest or override_manifest or disable_delta):
if old_manifest and new_manifest and not (override_old_manifest or override_manifest or disable_delta or
old_manifest.meta.build_id == new_manifest.meta.build_id):
delta_manifest_data = self.get_delta_manifest(randchoice(base_urls),
old_manifest.meta.build_id,
new_manifest.meta.build_id)