From c6404bf8c7adc8843f45f4170aa7b2da6924e449 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Sep 2012 18:03:35 +0000 Subject: (get_new_deps) fix deselecting updates when clicking on "New dependancies" side effect: doesn't show suggested packages anymore --- NEWS | 1 + Rpmdrake/gui.pm | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 24a1ba74..5a1bc4f6 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- fix deselecting updates when clicking on "New dependancies" - rpmdrake: o make failing to open RPM DB non fatal when reseting selection (mga#7352) diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 6ac0c766..5c9a08a8 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -232,11 +232,10 @@ sub get_new_deps { slow_func($::main_window->window, sub { my $state = {}; my $db = open_rpm_db(); - my @requested = $urpm->resolve_requested( + my @requested = $urpm->resolve_requested__no_suggests_( $db, $state, { $upkg->id => 1 }, ); - $urpm->disable_selected($db, $state, @requested); undef $db; my @nodes_with_deps = map { urpm_name($_) } @requested; my @deps = sort { $a cmp $b } difference2(\@nodes_with_deps, [ urpm_name($upkg) ]); -- cgit v1.2.1