mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated for versions view
This commit is contained in:
parent
eb0d4533d9
commit
f2fdd334d2
1 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,7 @@ from slpkg.configs import Configs
|
|||
from slpkg.utilities import Utilities
|
||||
from slpkg.sbos.queries import SBoQueries
|
||||
from slpkg.repositories import Repositories
|
||||
from slpkg.binaries.queries import BinQueries
|
||||
from slpkg.models.models import session as Session
|
||||
from slpkg.models.models import (SBoTable, PonceTable,
|
||||
BinariesTable, LastRepoUpdated)
|
||||
|
@ -133,6 +134,11 @@ class ViewPackage(Configs):
|
|||
LastRepoUpdated.date).where(
|
||||
LastRepoUpdated.repo == repo).first()
|
||||
|
||||
deps: str = (', '.join([f'{self.cyan}{pkg}' for pkg in info[9].split()]))
|
||||
if self.utils.is_option(self.flag_pkg_version, self.flags):
|
||||
deps: str = (', '.join([f'{self.cyan}{pkg}{self.endc}-{self.yellow}{BinQueries(pkg, repo).version()}'
|
||||
f'{self.green}' for pkg in info[9].split()]))
|
||||
|
||||
print(f'Repository: {self.yellow}{info[0]}{self.endc}\n'
|
||||
f'Last Updated: {self.violet}{last[0]}{self.endc}\n'
|
||||
f'Name: {self.green}{info[1]}{self.endc}\n'
|
||||
|
@ -145,7 +151,7 @@ class ViewPackage(Configs):
|
|||
f'Location: {self.red}{info[6]}{self.endc}\n'
|
||||
f'Size Comp: {info[7]}\n'
|
||||
f'Size Uncomp: {info[8]}\n'
|
||||
f'Requires: {self.green}{info[9]}{self.endc}\n'
|
||||
f'Requires: {self.green}{deps}{self.endc}\n'
|
||||
f'Conflicts: {info[10]}\n'
|
||||
f'Suggests: {info[11]}\n'
|
||||
f'Description: {info[12]}\n')
|
||||
|
|
Loading…
Reference in a new issue