svn path=/main/trunk/; revision=4974
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:
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):