diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-09-12 09:13:28 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-09-12 09:13:28 +0000 |
commit | 2e9b26f4cc1339e3e586c7783c207433417c1ffe (patch) | |
tree | 78979d6339bcae96fd7d6af708152b49de252684 | |
parent | 6c3f5be115a60dce6d91c1966f6143fbfa1a10e0 (diff) | |
download | rpmdrake-2e9b26f4cc1339e3e586c7783c207433417c1ffe.tar rpmdrake-2e9b26f4cc1339e3e586c7783c207433417c1ffe.tar.gz rpmdrake-2e9b26f4cc1339e3e586c7783c207433417c1ffe.tar.bz2 rpmdrake-2e9b26f4cc1339e3e586c7783c207433417c1ffe.tar.xz rpmdrake-2e9b26f4cc1339e3e586c7783c207433417c1ffe.zip |
perl_checker cleanups
-rwxr-xr-x | rpmdrake | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -260,7 +260,7 @@ my %group_icons = ( join('|', N("Graphical desktop"), #-PO: This is a package/product name. Only translate it if needed: N("Xfce")) => '', - join('|', N("Graphics")) => 'graphics_section', + N("Graphics") => 'graphics_section', N("Monitoring") => 'monitoring_section', N("Multimedia") => 'multimedia_section', join('|', N("Multimedia"), N("Video")) => 'video_section', @@ -617,7 +617,7 @@ sub format_pkg_simplifiedinfo { $exp->set_use_markup(1); push @$s, [ "\n\n" ]; push @$s, [ gtkadd(gtkshow(my $exp2 = Gtk2::Expander->new(format_field(N("Changelog:\n")))), - gtktext_insert(Gtk2::TextView->new, $pkgs->{$key}{changelog} ? $pkgs->{$key}{changelog} : N("(Not available)")) + gtktext_insert(Gtk2::TextView->new, $pkgs->{$key}{changelog} || N("(Not available)")) ) ]; $exp2->set_use_markup(1); $s; @@ -684,9 +684,9 @@ sub run_treeview_dialog { foreach my $importance (qw(bugfix security normal)) { $filter_methods{$importance} = sub { $filter_methods{all_updates}->(); - $pkgs = { grep { $descriptions->{$_}->{importance} eq $importance } keys %$pkgs }; + $pkgs = { grep { $descriptions->{$_}{importance} eq $importance } keys %$pkgs }; }; - }; + } $filter_methods{mandrake_choices} = $filter_methods{non_installed}; $filter_methods{$mode}->(); }; @@ -752,7 +752,7 @@ sub run_treeview_dialog { ($urpm_obj->flag_installed ? 'to_remove' : 'to_install') : ($urpm_obj->flag_installed ? ($urpm_obj->flag_upgrade ? 'to_update' : 'installed') - : ($urpm_obj->flag_base ? '/usr/share/rpmdrake/icons/base.png' : 'uninstalled')): 'XXX'; + : ($urpm_obj->flag_base ? '/usr/share/rpmdrake/icons/base.png' : 'uninstalled')) : 'XXX'; }, #- checks $_[0] -> hack for partial tree displaying build_tree => sub { my ($add_node, $flat, $mode) = @_; @@ -817,7 +817,7 @@ or you already installed all of them.")); foreach my $pkg (@elems) { my $grp = $pkg->[1]; $options->{add_parent}->($grp); - $elems{$grp} ||= [ ]; + $elems{$grp} ||= []; push @{$elems{$grp}}, $pkg; } } @@ -1227,7 +1227,7 @@ Is it ok to continue?", $options->{rebuild_tree}->(); }, undef, '<Item>' ], [ N("/_File") . N("/Reload the _packages list"), undef, sub { - slow_func($::main_window->window, sub { $rmodes{$pkgs_provider->({ skip_updating_mu => 1 }, $options->{tree_mode})}}); + slow_func($::main_window->window, sub { $rmodes{$pkgs_provider->({ skip_updating_mu => 1 }, $options->{tree_mode})} }); $reset_search->(); $size_selected = 0; $options->{rebuild_tree}->(); |