Updated for repository name

This commit is contained in:
Dimitris Zlatanidis 2023-03-09 22:44:08 +02:00
parent 05a34b03f1
commit e7ea4adacc
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
4.5.8 - 09/03/2023
Updated:
- View the name of the repository instead of the size
4.5.7 - 07/03/2023
Added:
- Ignore comments for list.pkgs files (Thanks to rizitis)

View file

@ -49,6 +49,10 @@ class Ascii(Configs):
self.bgreen: str = f'{self.bold}{self.green}'
self.bred: str = f'{self.bold}{self.red}'
self.repo: str = 'sbo'
if self.ponce_repo:
self.repo: str = 'ponce'
def draw_package_title_box(self, message: str, title: str) -> None:
""" Drawing package title box. """
middle_title: int = int((self.columns / 2) - len(title) + 6)
@ -67,13 +71,13 @@ class Ascii(Configs):
self.draw_middle_line()
print(f'{self.bgreen}{self.vertical_line}{self.endc} Package:' + ' ' * 27 + 'Version:' +
' ' * (self.columns - 51) + f'Size{self.bgreen} {self.vertical_line}{self.endc}')
' ' * (self.columns - 57) + f'Repository{self.bgreen} {self.vertical_line}{self.endc}')
def draw_view_package(self, package: str, version: str, color: str) -> None:
""" Draw nad print the packages. """
print(f'{self.bgreen}{self.vertical_line} {self.bold}{color}{package}{self.endc}' + ' ' * (35 - len(package)) +
f'{self.blue}{version}' + ' ' * ((self.columns - 37) - len(version) - 1) +
f'{self.bgreen}{self.vertical_line}{self.endc}')
f'{self.yellow}{version}' + ' ' * ((self.columns - 39) - len(version) - len(self.repo)) +
f'{self.blue}{self.repo} {self.bgreen}{self.vertical_line}{self.endc}')
def draw_log_package(self, package: str) -> None:
""" Drawing and print logs packages. """