diff options
-rw-r--r-- | fietsboek/updater/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fietsboek/updater/__init__.py b/fietsboek/updater/__init__.py index 6c154e7..8ca4991 100644 --- a/fietsboek/updater/__init__.py +++ b/fietsboek/updater/__init__.py @@ -124,7 +124,7 @@ class Updater: def _reverse_versions(self): all_versions = set(script.id for script in self.scripts.values()) - return (all_versions - self._transitive_versions()) | set(self.current_versions()) + return (all_versions - self._transitive_versions()) def stamp(self, versions): """Stampts the given version into the version file. @@ -201,6 +201,7 @@ class Updater: # dependencies instead. applied_versions = self._reverse_versions() to_apply = self._pick_updates(target, applied_versions, self.backward_dependencies) + to_apply -= {target} application_queue = self._make_schedule(to_apply, self.backward_dependencies) LOGGER.debug("Planned downgrade: %s", application_queue) for downgrade in application_queue: |