forked from cromer/pamac-classic
fix ignore updates from AUR
This commit is contained in:
parent
0a30f76fb8
commit
13c4ef9b05
@ -512,9 +512,11 @@ namespace Pamac {
|
|||||||
if (updates.aur_updates.length != 0) {
|
if (updates.aur_updates.length != 0) {
|
||||||
clear_lists ();
|
clear_lists ();
|
||||||
foreach (UpdateInfos infos in updates.aur_updates) {
|
foreach (UpdateInfos infos in updates.aur_updates) {
|
||||||
|
if ((infos.name in special_ignorepkgs) == false) {
|
||||||
to_build.add (infos.name);
|
to_build.add (infos.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (updates.repos_updates.length != 0) {
|
if (updates.repos_updates.length != 0) {
|
||||||
sysupgrade_simple (enable_downgrade);
|
sysupgrade_simple (enable_downgrade);
|
||||||
} else {
|
} else {
|
||||||
|
@ -59,6 +59,17 @@ namespace Pamac {
|
|||||||
Gtk.TreeIter iter;
|
Gtk.TreeIter iter;
|
||||||
updates_list.get_iter (out iter, treepath);
|
updates_list.get_iter (out iter, treepath);
|
||||||
updates_list.set (iter, 0, !select_update.active);
|
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]
|
[GtkCallback]
|
||||||
|
Loading…
Reference in New Issue
Block a user