aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-17 11:50:27 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-17 11:50:27 +0000
commit83417140e994bbf95b3a51eaf613ded5c88e5a7f (patch)
tree88453b21fffe4e21d54f6a74ee902897d5415daa /Rpmdrake
parent5bc29eb51ee6144a4ee03c2ea2b2690f2b8e0c39 (diff)
downloadrpmdrake-distro/mdv2008.0.tar
rpmdrake-distro/mdv2008.0.tar.gz
rpmdrake-distro/mdv2008.0.tar.bz2
rpmdrake-distro/mdv2008.0.tar.xz
rpmdrake-distro/mdv2008.0.zip
(pkgs_provider) fix listing updates per importance (#41331) ;distro/mdv2008.0
regression introduced in r227983 on 2007-09-14: "(format_pkg_simplifiedinfo) urpmi-4.10.10 enables to list all packages update description w/o having the ia32 one overwriting/hiding the x86_64 (or the reverse)"
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 620f4d4b..291969d1 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -443,9 +443,11 @@ sub pkgs_provider {
);
foreach my $importance (qw(bugfix security normal)) {
$filter_methods{$importance} = sub {
+ my @media = keys %$descriptions;
@filtered_pkgs = grep {
my ($name, $_version) = split_fullname($_);
- $descriptions->{$name}{importance} eq $importance } @{$h->{updates}};
+ my $medium = find { $descriptions->{$_}{$name} } @media;
+ $medium && $descriptions->{$medium}{$name}{importance} eq $importance } @{$h->{updates}};
};
}
$filter_methods{mandrake_choices} = $filter_methods{non_installed};