aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-26 17:23:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-26 17:23:25 +0000
commitf205e5299f3f22a5c8d66c0e54ad252c4cbbd15a (patch)
treeaad428b5c2070446af5605d6e108633b4e84426c
parent40beb332bba5359ce8397433391587cf0a7a3d83 (diff)
downloadrpmdrake-f205e5299f3f22a5c8d66c0e54ad252c4cbbd15a.tar
rpmdrake-f205e5299f3f22a5c8d66c0e54ad252c4cbbd15a.tar.gz
rpmdrake-f205e5299f3f22a5c8d66c0e54ad252c4cbbd15a.tar.bz2
rpmdrake-f205e5299f3f22a5c8d66c0e54ad252c4cbbd15a.tar.xz
rpmdrake-f205e5299f3f22a5c8d66c0e54ad252c4cbbd15a.zip
perl_checker cleanups
-rwxr-xr-xrpmdrake7
1 files changed, 3 insertions, 4 deletions
diff --git a/rpmdrake b/rpmdrake
index d4aef939..ab8451a8 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -267,7 +267,7 @@ sub run_treeview_dialog {
($col->{markup} ? (markup => $col->{markup}) : (text => $col->{text})),
)
);
- $col->{widget}->set_sort_column_id($col->{markup} ? $col->{markup} : $col->{text});
+ $col->{widget}->set_sort_column_id($col->{markup} || $col->{text});
}
$columns{$_}{widget}->set_sizing('autosize') foreach @columns;
$columns{name}{widget}->set_property('expand', '1');
@@ -335,10 +335,10 @@ sub run_treeview_dialog {
by_leaves => N("Leaves only, sorted by install date"),
by_group => N("All packages, by group"),
),
- ($is_backports ? (backports =>
+ if_($is_backports, backports =>
#-PO: Backports media are newer but less-tested versions of some packages in main
#-PO: See http://wiki.mandriva.com/en/Policies/SoftwareMedia#.2Fmain.2Fbackports
- N("Backports")) : ()),
+ N("Backports")),
meta_pkgs => N("Meta packages"),
gui_pkgs => N("Packages with GUI"),
all_updates => N("All updates"),
@@ -365,7 +365,6 @@ sub run_treeview_dialog {
@modes{'all', if_($compssUsers, 'mandrake_choices'),
qw(meta_pkgs gui_pkgs installed non_installed all_updates security bugfix normal),
if_($is_backports, 'backports')
-
} ],
$modes{$default_mode{$MODE} || 'all'}),
changed => sub {