mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for views
This commit is contained in:
parent
65f1fe50b8
commit
687640c73e
1 changed files with 2 additions and 3 deletions
|
@ -47,7 +47,7 @@ class ViewMessage(Configs):
|
|||
|
||||
def view_packages(self, package: str, mode: str) -> None:
|
||||
""" Printing the main packages. """
|
||||
size: str = ''
|
||||
size: str = str()
|
||||
color: str = self.red
|
||||
|
||||
if self.is_binary:
|
||||
|
@ -83,7 +83,6 @@ class ViewMessage(Configs):
|
|||
def _package_and_version(self, package: str) -> str:
|
||||
installed_package: str = self.utils.is_package_installed(package)
|
||||
version: str = self.utils.split_binary_pkg(installed_package)[1]
|
||||
|
||||
return f'{package}-{version}'
|
||||
|
||||
def view_skipping_packages(self, package: str, version: str) -> None:
|
||||
|
@ -146,7 +145,7 @@ class ViewMessage(Configs):
|
|||
|
||||
for pkg in packages:
|
||||
pkgs.append(pkg)
|
||||
requires = self.session.query(
|
||||
requires: tuple = self.session.query(
|
||||
LogsDependencies.requires).filter(
|
||||
LogsDependencies.name == pkg).first()
|
||||
|
||||
|
|
Loading…
Reference in a new issue