[core] Only use installed manifest for repair if it actually exists

Fixes #380
This commit is contained in:
derrod 2021-12-20 23:15:47 +01:00
parent c3ade2994e
commit 3e4c70ece2

View file

@ -1205,7 +1205,7 @@ class LegendaryCore:
self.log.info(f'Install path: {install_path}') self.log.info(f'Install path: {install_path}')
if repair: if repair:
if not repair_use_latest: if not repair_use_latest and old_manifest:
# use installed manifest for repairs instead of updating # use installed manifest for repairs instead of updating
new_manifest = old_manifest new_manifest = old_manifest
old_manifest = None old_manifest = None