From: Zac Medico Date: Tue, 7 Nov 2006 07:37:26 +0000 (-0000) Subject: Thanks to Bo Ørsted Andresen for this output fix for bug #153847. X-Git-Tag: v2.1.2~493 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce68cebc63f0bcfc2c4165c981c57b46aa7f4408;p=portage.git Thanks to Bo Ørsted Andresen for this output fix for bug #153847. svn path=/main/trunk/; revision=4974 --- 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):