aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
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};