From 0f88799bf5e29f39e25fff35c972bebf9bb7164a Mon Sep 17 00:00:00 2001 From: guinux Date: Mon, 5 Jan 2015 21:08:24 +0100 Subject: [PATCH] fix an issue --- src/manager_window.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/manager_window.vala b/src/manager_window.vala index 8bbec32..61e91bb 100644 --- a/src/manager_window.vala +++ b/src/manager_window.vala @@ -598,6 +598,7 @@ namespace Pamac { void on_reinstall_item_activate () { foreach (Pamac.Package pkg in selected_pkgs) { + transaction.to_remove.steal (pkg.name); if (pkg.repo == "local") transaction.to_add.insert (pkg.name, pkg.name); } @@ -607,6 +608,7 @@ namespace Pamac { void on_remove_item_activate () { foreach (Pamac.Package pkg in selected_pkgs) { + transaction.to_add.steal (pkg.name); if (transaction.alpm_config.holdpkgs.find_custom (pkg.name, strcmp) == null) { if (pkg.repo == "local") transaction.to_remove.insert (pkg.name, pkg.name);