mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Added slackbuilds versions
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
46a14e4258
commit
5924211650
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
4.3.4 - 02/12/2022
|
4.3.4 - 02/12/2022
|
||||||
Updated:
|
Updated:
|
||||||
- Remove dataclasses and switch to __init__
|
- Remove dataclasses and switch to __init__
|
||||||
|
Added:
|
||||||
|
- Version to the requires in the view packages command
|
||||||
|
|
||||||
4.3.3 - 01/12/2022
|
4.3.3 - 01/12/2022
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
|
@ -6,6 +6,7 @@ import urllib3
|
||||||
|
|
||||||
from slpkg.configs import Configs
|
from slpkg.configs import Configs
|
||||||
from slpkg.models.models import SBoTable
|
from slpkg.models.models import SBoTable
|
||||||
|
from slpkg.queries import SBoQueries
|
||||||
from slpkg.models.models import session as Session
|
from slpkg.models.models import session as Session
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,9 +58,11 @@ class ViewPackage:
|
||||||
if line.startswith('EMAIL'):
|
if line.startswith('EMAIL'):
|
||||||
email = line[7:-1].strip()
|
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'
|
print(f'Name: {GREEN}{info[0]}{ENDC}\n'
|
||||||
f'Version: {GREEN}{info[1]}{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'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 SlackBuild: {BLUE}{self.sbo_repo_url}/{info[9]}/{info[0]}{self.sbo_tar_suffix}{ENDC}\n'
|
||||||
f'Download sources: {BLUE}{info[3]}{ENDC}\n'
|
f'Download sources: {BLUE}{info[3]}{ENDC}\n'
|
||||||
|
|
Loading…
Add table
Reference in a new issue