Added slackbuilds versions

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-12-02 23:07:04 +02:00
parent 46a14e4258
commit 5924211650
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,8 @@
4.3.4 - 02/12/2022
Updated:
- Remove dataclasses and switch to __init__
Added:
- Version to the requires in the view packages command
4.3.3 - 01/12/2022
Fixed:

View file

@ -6,6 +6,7 @@ import urllib3
from slpkg.configs import Configs
from slpkg.models.models import SBoTable
from slpkg.queries import SBoQueries
from slpkg.models.models import session as Session
@ -57,9 +58,11 @@ class ViewPackage:
if line.startswith('EMAIL'):
email = line[7:-1].strip()
deps = (', '.join([f'{pkg} ({SBoQueries(pkg).version()})' for pkg in info[2].split()]))
print(f'Name: {GREEN}{info[0]}{ENDC}\n'
f'Version: {GREEN}{info[1]}{ENDC}\n'
f'Requires: {GREEN}{info[2]}{ENDC}\n'
f'Requires: {GREEN}{deps}{ENDC}\n'
f'Homepage: {BLUE}{homepage}{ENDC}\n'
f'Download SlackBuild: {BLUE}{self.sbo_repo_url}/{info[9]}/{info[0]}{self.sbo_tar_suffix}{ENDC}\n'
f'Download sources: {BLUE}{info[3]}{ENDC}\n'