mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Replaced from utils
This commit is contained in:
parent
b4120b565b
commit
9cbfaf3244
1 changed files with 3 additions and 5 deletions
|
@ -43,8 +43,6 @@ class ViewMessage(Configs):
|
|||
self.flag_yes: list = ['-y', '--yes']
|
||||
self.flag_binary: list = ['-B', '--binary']
|
||||
|
||||
self.all_installed: list = self.utils.installed_package_names
|
||||
|
||||
def view_packages(self, package: str, mode: str) -> None:
|
||||
""" Printing the main packages. """
|
||||
color: str = self.red
|
||||
|
@ -63,7 +61,7 @@ class ViewMessage(Configs):
|
|||
color: str = self.violet
|
||||
|
||||
# If the package is installed and change the color to gray.
|
||||
if package in self.all_installed and mode == 'install':
|
||||
if package in self.utils.installed_package_names and mode == 'install':
|
||||
color = self.grey
|
||||
|
||||
self.ascii.draw_view_package(package, version, color, repo)
|
||||
|
@ -205,10 +203,10 @@ class ViewMessage(Configs):
|
|||
for sbo in slackbuilds:
|
||||
upgradeable: str = self.utils.is_package_upgradeable(sbo)
|
||||
|
||||
if sbo in self.all_installed:
|
||||
if sbo in self.utils.installed_package_names:
|
||||
installed: bool = True
|
||||
|
||||
if sbo in self.all_installed:
|
||||
if sbo in self.utils.installed_package_names:
|
||||
installed: bool = True
|
||||
|
||||
if not installed:
|
||||
|
|
Loading…
Add table
Reference in a new issue