diff options
Diffstat (limited to 'src/hydrilla/proxy/state_impl/concrete_state.py')
-rw-r--r-- | src/hydrilla/proxy/state_impl/concrete_state.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/hydrilla/proxy/state_impl/concrete_state.py b/src/hydrilla/proxy/state_impl/concrete_state.py index 0de67e0..f180ec6 100644 --- a/src/hydrilla/proxy/state_impl/concrete_state.py +++ b/src/hydrilla/proxy/state_impl/concrete_state.py @@ -140,20 +140,22 @@ class ConcreteHaketiloState(base.HaketiloStateWithFields): self.rebuild_structures() + def prune_orphans(self) -> None: + with self.cursor() as cursor: + assert self.connection.in_transaction + + _operations.prune_orphans(cursor) + def recompute_dependencies( self, - extra_requirements: t.Iterable[sds.MappingRequirement] = [], - prune_orphans: bool = False, + unlocked_required_mappings: base.NoLockArg = [] ) -> None: with self.cursor() as cursor: assert self.connection.in_transaction - if prune_orphans: - _operations.prune_packages(cursor) - _operations._recompute_dependencies_no_state_update( - cursor = cursor, - extra_requirements = extra_requirements + cursor = cursor, + unlocked_required_mappings = unlocked_required_mappings ) self.rebuild_structures() |