[cli] Update version even if no files changed

This happens mostly with DLCs that get version bumps with no file changes.
This commit is contained in:
derrod 2023-06-17 21:31:12 +02:00
parent 175168adcb
commit bbb19d6cb6

View file

@ -976,6 +976,11 @@ class LegendaryCLI:
self.core.uninstall_tag(old_igame) self.core.uninstall_tag(old_igame)
self.core.install_game(old_igame) self.core.install_game(old_igame)
# check if the version changed, this can happen for DLC that gets a version bump with no actual file changes
if old_igame and old_igame.version != igame.version:
old_igame.version = igame.version
self.core.install_game(old_igame)
exit(0) exit(0)
logger.info(f'Install size: {analysis.install_size / 1024 / 1024:.02f} MiB') logger.info(f'Install size: {analysis.install_size / 1024 / 1024:.02f} MiB')