Fix reference message

This commit is contained in:
Dimitris Zlatanidis 2015-12-30 00:39:05 +02:00
parent dda966f6aa
commit d5919c032d

View file

@ -357,7 +357,10 @@ class PackageManager(object):
"""
print("")
self.msg.template(78)
print("| Total {0} packages removed".format(len(removes)))
msg_pkg = "package"
if len(removes) > 1:
msg_pkg = "packages"
print("| Total {0} {1} removed".format(len(removes), msg_pkg))
self.msg.template(78)
for pkg in removes:
if not GetFromInstalled(pkg).name():