diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 15:53:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 15:53:18 +0000 |
commit | 36196ecd22216732d3ceea882645aba98af70a57 (patch) | |
tree | 33f526a72f96ab04fc0ade1f46eb7f7da90e4227 | |
parent | f91f2b7aebd3b50c5d6069dd9f4e136d65d17901 (diff) | |
download | rpmdrake-36196ecd22216732d3ceea882645aba98af70a57.tar rpmdrake-36196ecd22216732d3ceea882645aba98af70a57.tar.gz rpmdrake-36196ecd22216732d3ceea882645aba98af70a57.tar.bz2 rpmdrake-36196ecd22216732d3ceea882645aba98af70a57.tar.xz rpmdrake-36196ecd22216732d3ceea882645aba98af70a57.zip |
(run_treeview_dialog) hide architecture column on non biarch systems
-rwxr-xr-x | rpmdrake | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -236,7 +236,8 @@ sub run_treeview_dialog { $col_sel->set_sizing('fixed'); $col_sel->set_sort_column_id($pkg_columns{selected}); - my @columns = qw(name version release arch); + my $display_arch_col = to_bool(arch() =~ /64/); + my @columns = (qw(name version release), if_($display_arch_col, 'arch')); my %columns = ( 'name' => { @@ -251,12 +252,12 @@ sub run_treeview_dialog { title => N("Release"), text => $pkg_columns{release}, }, - 'arch' => { + if_($display_arch_col, 'arch' => { title => #-PO: "Architecture" but to be kept *small* !!! N("Arch."), text => $pkg_columns{arch}, - }, + }), ); foreach my $col (@columns{@columns}) { $detail_list->append_column( |