Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <zypper> master : Show arch after version.
  • From: Ján Kupec <jkupec@xxxxxxx>
  • Date: Sun, 7 Jun 2009 16:35:50 +0200
  • Message-id: <E1MDcA6-0007C7-Jf@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 6272c68e5ffe0e137eeec98107680b8c06635771
Author: Ján Kupec <jkupec@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages