aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-17 18:03:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-17 18:03:35 +0000
commitc6404bf8c7adc8843f45f4170aa7b2da6924e449 (patch)
tree4079d187b8944438fdcc98bf9d24e04cc6596c39
parenta686ef8bea2625b8474fc2deaccbe172952a1480 (diff)
downloadrpmdrake-c6404bf8c7adc8843f45f4170aa7b2da6924e449.tar
rpmdrake-c6404bf8c7adc8843f45f4170aa7b2da6924e449.tar.gz
rpmdrake-c6404bf8c7adc8843f45f4170aa7b2da6924e449.tar.bz2
rpmdrake-c6404bf8c7adc8843f45f4170aa7b2da6924e449.tar.xz
rpmdrake-c6404bf8c7adc8843f45f4170aa7b2da6924e449.zip
(get_new_deps) fix deselecting updates when clicking on "New dependancies"
side effect: doesn't show suggested packages anymore
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/gui.pm3
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) ]);