Added view version

This commit is contained in:
Dimitris Zlatanidis 2015-07-17 17:19:25 +03:00
parent e9c755a1f3
commit 7d4c9db0b0

View file

@ -317,11 +317,11 @@ class SBoInstall(object):
if find == pkg: if find == pkg:
print("[ {0}Upgrading{1} ] --> {2}".format( print("[ {0}Upgrading{1} ] --> {2}".format(
self.meta.color["YELLOW"], self.meta.color["YELLOW"],
self.meta.color["ENDC"], pkg)) self.meta.color["ENDC"], sbo))
upgraded.append(prgnam) upgraded.append(prgnam)
else: else:
print("[ {0}Installing{1} ] --> {2}".format( print("[ {0}Installing{1} ] --> {2}".format(
self.meta.color["GREEN"], self.meta.color["ENDC"], pkg)) self.meta.color["GREEN"], self.meta.color["ENDC"], sbo))
installs.append(prgnam) installs.append(prgnam)
PackageManager(binary).upgrade(flag="--install-new") PackageManager(binary).upgrade(flag="--install-new")
return installs, upgraded return installs, upgraded