Fix reference message

This commit is contained in:
Dimitris Zlatanidis 2015-08-21 02:57:17 +03:00
parent 9aa2c35ab9
commit 231f467c4a
2 changed files with 8 additions and 8 deletions

View file

@ -6,10 +6,12 @@ Added:
Fixed: Fixed:
- Resolving dependencies message for sbo repository when search for matching - Resolving dependencies message for sbo repository when search for matching
packages packages
- Reference message for installing and upgrading packages
- Build error message - Build error message
Updated: Updated:
- Install SBo packages with specific build number - Install SBo packages with specific build number
- For SBo repository select computer architecture - For SBo repository select computer architecture
- Module imports path
2.7.3 - 13/08/2015 2.7.3 - 13/08/2015
Added: Added:

View file

@ -23,11 +23,10 @@
import sys import sys
import itertools
from slpkg.__metadata__ import MetaData as _meta_ from slpkg.__metadata__ import MetaData as _meta_
from slpkg.pkg.installed import GetFromInstalled
class Msg(object): class Msg(object):
"""Messages control """Messages control
@ -148,10 +147,9 @@ class Msg(object):
len(install), self.pkg(len(install)), len(install), self.pkg(len(install)),
len(upgrade), self.pkg(len(upgrade)))) len(upgrade), self.pkg(len(upgrade))))
self.template(78) self.template(78)
for installed in (install + upgrade): for installed, upgraded in itertools.izip_longest(install, upgrade):
name = "-".join(installed.split("-")[:-1]) if upgraded:
if GetFromInstalled(name).name(): print("| Package {0} upgraded successfully".format(upgraded))
print("| Package {0} upgraded successfully".format(name)) if installed:
else: print("| Package {0} installed successfully".format(installed))
print("| Package {0} installed successfully".format(name))
self.template(78) self.template(78)