From ce68cebc63f0bcfc2c4165c981c57b46aa7f4408 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 7 Nov 2006 07:37:26 +0000 Subject: [PATCH] =?utf8?q?Thanks=20to=20Bo=20=C3=98rsted=20Andresen=20=20for=20this=20output=20fix=20for=20bug=20#153?= =?utf8?q?847.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=4974 --- bin/emerge | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/emerge b/bin/emerge index 58a39a5b6..7b77d337a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2238,9 +2238,10 @@ class PackageCounters(object): myoutput = [] details = [] myoutput.append("Total: %s package" % total_installs) - if total_installs > 1: + if total_installs != 1: myoutput.append("s") - myoutput.append(" (") + if total_installs != 0: + myoutput.append(" (") if self.upgrades > 0: details.append("%s upgrade" % self.upgrades) if self.upgrades > 1: @@ -2264,7 +2265,9 @@ class PackageCounters(object): if self.blocks > 1: details[-1] += "s" myoutput.append(", ".join(details)) - myoutput.append("), Size of downloads: %s" % format_size(self.totalsize)) + if total_installs != 0: + myoutput.append(")") + myoutput.append(", Size of downloads: %s" % format_size(self.totalsize)) return "".join(myoutput) class MergeTask(object): -- 2.26.2