aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-17 11:46:35 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-17 11:46:35 +0000
commit1fb0d5ad6a5e694df366a5c5887c9025a77eb12c (patch)
tree93ad3fd96c583434ca69e77dc62d2ee87529d661 /Rpmdrake/gui.pm
parent12e3f1da4976b60fb5c2ea70bfecbeac429b0929 (diff)
downloadrpmdrake-1fb0d5ad6a5e694df366a5c5887c9025a77eb12c.tar
rpmdrake-1fb0d5ad6a5e694df366a5c5887c9025a77eb12c.tar.gz
rpmdrake-1fb0d5ad6a5e694df366a5c5887c9025a77eb12c.tar.bz2
rpmdrake-1fb0d5ad6a5e694df366a5c5887c9025a77eb12c.tar.xz
rpmdrake-1fb0d5ad6a5e694df366a5c5887c9025a77eb12c.zip
(pkgs_provider) fix listing updates per importance (#41331) ;
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/gui.pm')
-rw-r--r--Rpmdrake/gui.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index da151920..617ef120 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -542,9 +542,11 @@ sub pkgs_provider {
);
foreach my $importance (qw(bugfix security normal)) {
$tmp_filter_methods{$importance} = sub {
+ my @media = keys %$descriptions;
[ grep {
my ($name) = split_fullname($_);
- $descriptions->{$name}{importance} eq $importance } @{$h->{updates}} ];
+ my $medium = find { $descriptions->{$_}{$name} } @media;
+ $medium && $descriptions->{$medium}{$name}{importance} eq $importance } @{$h->{updates}} ];
};
}