Fix update entity not sticking with skipped version (#70779)

pull/70466/head^2
Franck Nijhof 2022-04-26 16:50:32 +02:00 committed by GitHub
parent 89e3a48751
commit f84c33203b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -375,8 +375,11 @@ class UpdateEntity(RestoreEntity):
# Clear skipped version in case it matches the current installed
# version or the latest version diverged.
if (
self.__skipped_version == self.installed_version
or self.__skipped_version != self.latest_version
self.installed_version is not None
and self.__skipped_version == self.installed_version
) or (
self.latest_version is not None
and self.__skipped_version != self.latest_version
):
self.__skipped_version = None