From f6e5b086e439b0745c6bf2a21df76adbaca59ebe Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 10 Dec 2021 13:07:48 -0300 Subject: [PATCH] [arch] fix: regression (cannot reinstall uninstalled AUR packages on the same view) --- bauh/gems/arch/controller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index 90cd2f04..251f4a51 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -1459,8 +1459,10 @@ class ArchManager(SoftwareManager): 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))