Skip to content

Commit

Permalink
[arch] fix: regression (cannot reinstall uninstalled AUR packages on …
Browse files Browse the repository at this point in the history
…the same view)
  • Loading branch information
vinifmor committed Dec 10, 2021
1 parent e4b15f6 commit f6e5b08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bauh/gems/arch/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,8 +1459,10 @@ def uninstall(self, pkg: ArchPackage, root_password: str, watcher: ProcessWatche
if success:
removed_list = []

if pkg.name in removed:
main_removed = removed.get(pkg.name)
if main_removed:
pkg.installed = False
pkg.url_download = main_removed.url_download # otherwise uninstalled AUR packages cannot be reinstalled on the same view
removed_list.append(pkg)

removed_list.extend((inst for name, inst in removed.items() if name != pkg.name))
Expand Down

0 comments on commit f6e5b08

Please sign in to comment.