aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hydrilla/proxy/state_impl/items.py5
1 files changed, 4 insertions, 1 deletions
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(