aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-20 16:24:27 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-20 16:24:27 +0000
commit1bc21991a5d8ee5bdd6c8f50003b9021225a9aab (patch)
tree37e3bbe7a9ee8ebe62afd0be7717987fb10c0553 /Rpmdrake/gui.pm
parent4d83d53c86e0e3a44982aa623d5fec4c6b4774c1 (diff)
downloadrpmdrake-1bc21991a5d8ee5bdd6c8f50003b9021225a9aab.tar
rpmdrake-1bc21991a5d8ee5bdd6c8f50003b9021225a9aab.tar.gz
rpmdrake-1bc21991a5d8ee5bdd6c8f50003b9021225a9aab.tar.bz2
rpmdrake-1bc21991a5d8ee5bdd6c8f50003b9021225a9aab.tar.xz
rpmdrake-1bc21991a5d8ee5bdd6c8f50003b9021225a9aab.zip
(build_tree) fix crash (#29707)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 9763d4a6..d42602db 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -440,10 +440,9 @@ sub pkgs_provider {
);
foreach my $importance (qw(bugfix security normal)) {
$filter_methods{$importance} = sub {
- @filtered_pkgs = $h->{updates};
- @filtered_pkgs = { map { $_ => @filtered_pkgs->{$_} } grep {
+ @filtered_pkgs = grep {
my ($name, $_version) = split_fullname($_);
- $descriptions->{$name}{importance} eq $importance } @filtered_pkgs };
+ $descriptions->{$name}{importance} eq $importance } @{$h->{updates}};
};
}
$filter_methods{mandrake_choices} = $filter_methods{non_installed};