fix ignore updates from AUR

This commit is contained in:
guinux 2015-04-13 09:41:30 +02:00
parent 0a30f76fb8
commit 13c4ef9b05
2 changed files with 14 additions and 1 deletions

View File

@ -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) {

View File

@ -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]