diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-17 11:47:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-17 11:47:50 +0000 |
commit | b15f2a586aebe08466a90c463daf5436c015cea9 (patch) | |
tree | e486ed8f007f3ce4fbb3c27e2252c644be510008 | |
parent | 44ec877cf385f531f07c40a89b514a3973e90b11 (diff) | |
download | rpmdrake-b15f2a586aebe08466a90c463daf5436c015cea9.tar rpmdrake-b15f2a586aebe08466a90c463daf5436c015cea9.tar.gz rpmdrake-b15f2a586aebe08466a90c463daf5436c015cea9.tar.bz2 rpmdrake-b15f2a586aebe08466a90c463daf5436c015cea9.tar.xz rpmdrake-b15f2a586aebe08466a90c463daf5436c015cea9.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)"
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +- rpmdrake: + o fix listing updates per importance (#41331) + (regression introduced in 3.95 on 2007-09-14) + Version 4.9.13.4 - 9 September 2008, Thierry Vignaud - rpmdrake: diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index a631f675..85d7cd29 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -543,9 +543,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}} ]; }; } |