diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:05:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:05:27 +0000 |
commit | e13aec32e1da4eabd04a6e25506bac5bf34b0224 (patch) | |
tree | e46d2723861d6e1fbfb50fd3f2b133011ddb15b0 | |
parent | a7ac54543f2efa6667ce1556f31631648b054581 (diff) | |
download | rpmdrake-e13aec32e1da4eabd04a6e25506bac5bf34b0224.tar rpmdrake-e13aec32e1da4eabd04a6e25506bac5bf34b0224.tar.gz rpmdrake-e13aec32e1da4eabd04a6e25506bac5bf34b0224.tar.bz2 rpmdrake-e13aec32e1da4eabd04a6e25506bac5bf34b0224.tar.xz rpmdrake-e13aec32e1da4eabd04a6e25506bac5bf34b0224.zip |
(run_treeview_dialog) rename %sort_methods as %filter_methods to reflect its real purpose
-rwxr-xr-x | rpmdrake | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -630,7 +630,7 @@ sub run_treeview_dialog { my ($options, $mode) = @_; my $h = &get_pkgs($urpm, $options); # was given (1, @_) for updates ($urpm, $descriptions) = @$h{qw(urpm update_descr)}; - my %sort_methods = ( + my %filter_methods = ( all => sub { $pkgs = map { ${$h->{$_}} } qw(installed installable updates) }, installed => sub { $pkgs = $h->{installed} }, non_installed => sub { $pkgs = $h->{installable} }, @@ -640,13 +640,13 @@ sub run_treeview_dialog { #normal => sub { $pkgs = } ); foreach my $importance (qw(bugfix security normal)) { - $sort_methods{$importance} = sub { - $sort_methods{all_updates}->(); + $filter_methods{$importance} = sub { + $filter_methods{all_updates}->(); $pkgs = { grep { $descriptions->{$_}->{importance} eq $importance } keys %$pkgs }; }; }; - $sort_methods{mandrake_choices} = $sort_methods{non_installed}; - $sort_methods{$mode}->(); + $filter_methods{mandrake_choices} = $filter_methods{non_installed}; + $filter_methods{$mode}->(); }; $pkgs_provider->({}, 'mandrake_choices'); # default mode |