diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-09-27 12:26:04 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-29 10:47:17 +0200 |
commit | fae35b53a4f63f60f0da96e75a0c2fc310217578 (patch) | |
tree | 677241d42f33a5735a43b15dddda66f5bc1a70ef /src | |
parent | 8c9c79921538fef769367728199d54b2013b7f0f (diff) | |
download | haketilo-hydrilla-fae35b53a4f63f60f0da96e75a0c2fc310217578.tar.gz haketilo-hydrilla-fae35b53a4f63f60f0da96e75a0c2fc310217578.zip |
[proxy] make sure dependencies are recomputed properly when uninstalling a package/library
Diffstat (limited to 'src')
-rw-r--r-- | src/hydrilla/proxy/state_impl/items.py | 5 |
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( |