aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-17 07:34:05 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-17 07:34:05 +0000
commit5ddab42ab56390ffaf47a5058ee168036f280664 (patch)
treef3e37e993bf79bf041e822c06ef19fe8c2493282
parent1ec8a433426444455095394cef7c4993dee5be66 (diff)
downloadrpmdrake-5ddab42ab56390ffaf47a5058ee168036f280664.tar
rpmdrake-5ddab42ab56390ffaf47a5058ee168036f280664.tar.gz
rpmdrake-5ddab42ab56390ffaf47a5058ee168036f280664.tar.bz2
rpmdrake-5ddab42ab56390ffaf47a5058ee168036f280664.tar.xz
rpmdrake-5ddab42ab56390ffaf47a5058ee168036f280664.zip
(pkgs_provider) simplify
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 53a10cde..1a093793 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -521,7 +521,7 @@ sub pkgs_provider {
($urpm, $descriptions) = @$h{qw(urpm update_descr)};
$pkgs = $h->{all_pkgs};
%filter_methods = (
- all => sub { @filtered_pkgs = map { @$_ } @$h{qw(installed installable updates)} },
+ all => sub { @filtered_pkgs = keys %$pkgs },
installed => sub { @filtered_pkgs = @{$h->{installed}} },
non_installed => sub { @filtered_pkgs = @{$h->{installable}} },
all_updates => sub {