From 13c4ef9b05420b5f19cbdce0dfb3b019d1a989f0 Mon Sep 17 00:00:00 2001 From: guinux Date: Mon, 13 Apr 2015 09:41:30 +0200 Subject: [PATCH] fix ignore updates from AUR --- src/transaction.vala | 4 +++- src/updater_window.vala | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/transaction.vala b/src/transaction.vala index 09a9782..5b3e74e 100644 --- a/src/transaction.vala +++ b/src/transaction.vala @@ -512,7 +512,9 @@ namespace Pamac { if (updates.aur_updates.length != 0) { clear_lists (); foreach (UpdateInfos infos in updates.aur_updates) { - to_build.add (infos.name); + if ((infos.name in special_ignorepkgs) == false) { + to_build.add (infos.name); + } } } if (updates.repos_updates.length != 0) { diff --git a/src/updater_window.vala b/src/updater_window.vala index 794dd50..187cdbb 100644 --- a/src/updater_window.vala +++ b/src/updater_window.vala @@ -59,6 +59,17 @@ namespace Pamac { Gtk.TreeIter iter; updates_list.get_iter (out iter, treepath); updates_list.set (iter, 0, !select_update.active); + updates_list.foreach ((model, path, iter) => { + GLib.Value val; + updates_list.get_value (iter, 0, out val); + bool selected = val.get_boolean (); + if (selected) { + apply_button.set_sensitive (true); + return true; + } + apply_button.set_sensitive (false); + return false; + }); } [GtkCallback]