Updated for version view

This commit is contained in:
Dimitris Zlatanidis 2023-04-11 10:55:35 +03:00
parent fcd459a7ad
commit 815f9bbdbc

View file

@ -84,7 +84,7 @@ class ViewPackage(Configs):
deps: str = (', '.join([f'{self.cyan}{pkg}' for pkg in info[2].split()]))
if self.option_for_pkg_version:
deps: str = (', '.join([f'{self.cyan}{pkg}{self.endc}-{self.yellow}{data[pkg][2]}'
deps: str = (', '.join([f'{self.cyan}{pkg}{self.endc} {self.yellow}{data[pkg][2]}'
f'{self.green}' for pkg in info[2].split()]))
print(f'Name: {self.green}{info[0]}{self.endc}\n'
@ -137,7 +137,7 @@ class ViewPackage(Configs):
deps: str = (', '.join([f'{self.cyan}{pkg}' for pkg in info[9].split()]))
if self.option_for_pkg_version:
deps: str = (', '.join([f'{self.cyan}{pkg}{self.endc}-{self.yellow}{data[pkg][0]}'
deps: str = (', '.join([f'{self.cyan}{pkg}{self.endc} {self.yellow}{data[pkg][0]}'
f'{self.green}' for pkg in info[9].split()]))
print(f'Repository: {self.yellow}{info[0]}{self.endc}\n'