Added message for custom versions

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-11 21:33:43 +03:00
parent 3b1ec35e67
commit 6423b17ec1

View file

@ -105,9 +105,11 @@ class View(Configs): # pylint: disable=[R0902]
self.set_summary_for_install_and_upgrade(self.sum_install, self.sum_upgrade,
self.sum_size_comp, self.sum_size_uncomp)
print(self.summary_message)
if mode == 'upgrade' and self.upgrade_log_file.is_file():
print(f'{self.red}{self.ascii.failed} Some packages failed, '
f'check the /var/log/slpkg/upgrade.log file.{self.endc}')
if mode == 'upgrade':
print(f'{self.grey}Note: Packages with custom versions may not be recognized.{self.endc}')
if self.upgrade_log_file.is_file():
print(f'{self.red}{self.ascii.failed} Some packages failed, '
f'check the /var/log/slpkg/upgrade.log file.{self.endc}')
def download_packages(self, packages: list, directory: Path) -> None:
""" View packages for download method.