Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <zypper> master : proper messages for suggested packages in summary
  • From: Ján Kupec <jkupec@xxxxxxx>
  • Date: Thu, 19 Nov 2009 19:55:28 +0100
  • Message-id: <E1NBCCk-0002ou-7R@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 6764952196943076b0df0c82587bb7dbf2c6a126
Author: Ján Kupec <jkupec@xxxxxxx>
Date: Thu Nov 19 19:55:28 2009 +0100

proper messages for suggested packages in summary
---
src/Summary.cc | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/Summary.cc b/src/Summary.cc
index 889900b..0ad1ba2 100644
--- a/src/Summary.cc
+++ b/src/Summary.cc
@@ -713,6 +713,26 @@ void Summary::writeSuggested(ostream & out)
for_(it, noinstsug.begin(), noinstsug.end())
{
string label;
+ if (it->first == ResKind::package)
+ label = _PL(
+ "The following package is suggested, but will not be installed:",
+ "The following packages are suggested, but will not be installed:",
+ it->second.size());
+ else if (it->first == ResKind::patch)
+ label = _PL(
+ "The following patch is suggested, but will not be installed:",
+ "The following patches are suggested, but will not be installed:",
+ it->second.size());
+ else if (it->first == ResKind::pattern)
+ label = _PL(
+ "The following pattern is suggested, but will not be installed:",
+ "The following patterns are suggested, but will not be installed:",
+ it->second.size());
+ else if (it->first == ResKind::product)
+ label = _PL(
+ "The following product is suggested, but will not be installed:",
+ "The following products are suggested, but will not be installed:",
+ it->second.size());
out << endl << label << endl;

writeResolvableList(out, it->second);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages