From 6272c68e5ffe0e137eeec98107680b8c06635771 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Kupec?= Date: Sun, 7 Jun 2009 16:35:50 +0200 Subject: [PATCH] Show arch after version. --- src/search.cc | 13 +++++++++++-- 1 file 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; } } -- 2.7.4