mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for view
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
ef39df068a
commit
5fe72c3a3d
1 changed files with 22 additions and 2 deletions
|
@ -41,13 +41,33 @@ class ViewMessage(Configs):
|
||||||
""" Printing the main packages. """
|
""" Printing the main packages. """
|
||||||
color = self.red
|
color = self.red
|
||||||
|
|
||||||
if mode == 'install':
|
if mode in ['install', 'download']:
|
||||||
color = self.cyan
|
color = self.cyan
|
||||||
if mode == 'build':
|
if mode == 'build':
|
||||||
color = self.yellow
|
color = self.yellow
|
||||||
if mode == 'upgrade':
|
if mode == 'upgrade':
|
||||||
color = self.violet
|
color = self.violet
|
||||||
|
|
||||||
|
# is_installed = self.utils.is_installed(package)
|
||||||
|
# inst_ver = self.utils.split_installed_pkg(is_installed)[1]
|
||||||
|
#
|
||||||
|
# color = self.cyan
|
||||||
|
# if mode == 'install' and is_installed:
|
||||||
|
# color = self.grey
|
||||||
|
# if mode == 'install' and self.flag_reinstall in self.flags and is_installed:
|
||||||
|
# color = self.yellow
|
||||||
|
# if mode == 'install' and self.utils.is_repo_version_bigger(package):
|
||||||
|
# color = self.violet
|
||||||
|
# if mode == 'remove':
|
||||||
|
# color = self.red
|
||||||
|
# if mode == 'build':
|
||||||
|
# color = self.yellow
|
||||||
|
# if mode == 'upgrade':
|
||||||
|
# color = self.violet
|
||||||
|
#
|
||||||
|
# if inst_ver:
|
||||||
|
# package = f'{package}-{inst_ver}'
|
||||||
|
|
||||||
self.ascii.draw_view_package(package, version, color)
|
self.ascii.draw_view_package(package, version, color)
|
||||||
|
|
||||||
def view_skipping_packages(self, sbo, version):
|
def view_skipping_packages(self, sbo, version):
|
||||||
|
|
Loading…
Reference in a new issue