From fae35b53a4f63f60f0da96e75a0c2fc310217578 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 27 Sep 2022 12:26:04 +0200 Subject: [proxy] make sure dependencies are recomputed properly when uninstalling a package/library --- src/hydrilla/proxy/state_impl/items.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/hydrilla/proxy/state_impl/items.py b/src/hydrilla/proxy/state_impl/items.py index 02508f8..e9cabb5 100644 --- a/src/hydrilla/proxy/state_impl/items.py +++ b/src/hydrilla/proxy/state_impl/items.py @@ -119,11 +119,14 @@ def _uninstall_version(ref: VersionRefVar) -> t.Optional[VersionRefVar]: if installed_status == 'N': return ref + if active_status == 'R': + return ref + _set_installed_status(cursor, ref.id, 'N') ref.state.prune_orphans() - if active_status == 'R': + if active_status != 'N': ref.state.recompute_dependencies() cursor.execute( -- cgit v1.2.3