From d516b9decad07b940b3cd117fc4e353dd8bbe7d2 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 24 Aug 2022 10:47:33 +0200 Subject: make repo packages (mappings) load as uninstalled; make them installable through the web UI --- src/hydrilla/proxy/state_impl/concrete_state.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/hydrilla/proxy/state_impl/concrete_state.py') diff --git a/src/hydrilla/proxy/state_impl/concrete_state.py b/src/hydrilla/proxy/state_impl/concrete_state.py index ec16e11..ef698a0 100644 --- a/src/hydrilla/proxy/state_impl/concrete_state.py +++ b/src/hydrilla/proxy/state_impl/concrete_state.py @@ -122,9 +122,13 @@ class ConcreteHaketiloState(base.HaketiloStateWithFields): def import_packages(self, malcontent_path: Path) -> None: with self.cursor(transaction=True) as cursor: - _operations.load_packages(cursor, malcontent_path, 1) + _operations._load_packages_no_state_update( + cursor = cursor, + malcontent_path = malcontent_path, + repo_id = 1 + ) - self.recompute_dependencies() + self.rebuild_structures() def recompute_dependencies( self, @@ -134,8 +138,8 @@ class ConcreteHaketiloState(base.HaketiloStateWithFields): assert self.connection.in_transaction _operations._recompute_dependencies_no_state_update( - cursor, - extra_requirements + cursor = cursor, + extra_requirements = extra_requirements ) self.rebuild_structures() -- cgit v1.2.3