ref: refs/heads/master
commit 6272c68e5ffe0e137eeec98107680b8c06635771
Author: Ján Kupec
Date: Sun Jun 7 16:35:50 2009 +0200
Show arch after version.
---
src/search.cc | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/search.cc b/src/search.cc
index f634c90..ec819be 100644
--- a/src/search.cc
+++ b/src/search.cc
@@ -543,8 +543,10 @@ static void list_product_table(Zypper & zypper)
// translators: product category (base/addon), the rug term
th << _("Category");
else
+ {
+ th << _("Arch");
th << _("Is Base");
- th << _("Arch");
+ }
tbl << th;
bool installed_only = zypper.cOpts().count("installed-only");
@@ -590,14 +592,21 @@ static void list_product_table(Zypper & zypper)
continue;
tr << "";
}
+ // repository
if (!zypper.globalOpts().is_rug_compatible)
tr << repo;
+ // name
tr << product->name () << product->edition().asString();
if (zypper.globalOpts().is_rug_compatible)
+ // rug 'Category'
tr << (product->isTargetDistribution() ? "base" : "");
else
+ {
+ // architecture
+ tr << product->arch().asString();
+ // is base
tr << (product->isTargetDistribution() ? _("Yes") : _("No"));
- tr << product->arch().asString();
+ }
tbl << tr;
}
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org