aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-26 15:53:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-26 15:53:18 +0000
commit36196ecd22216732d3ceea882645aba98af70a57 (patch)
tree33f526a72f96ab04fc0ade1f46eb7f7da90e4227
parentf91f2b7aebd3b50c5d6069dd9f4e136d65d17901 (diff)
downloadrpmdrake-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-xrpmdrake7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index 26d03df4..d4aef939 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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(