Fixed for mnessage

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-31 17:03:03 +03:00
parent 1c260d961f
commit e5b3419914

View file

@ -272,7 +272,6 @@ class View(Configs): # pylint: disable=[R0902]
size_comp (int): Counts of compressed sizes.
size_uncomp (int): Counts of uncompressed sizes.
"""
custom_message: str = ''
upgrade_message: str = ''
split_message: str = '\n'
if self.columns > 80:
@ -286,9 +285,9 @@ class View(Configs): # pylint: disable=[R0902]
upgrade_message: str = (f'\n{self.red}{self.ascii.failed} Some versions failed, '
f'check the /var/log/slpkg/upgrade.log file.{self.endc}')
else:
custom_message: str = (f'\n{self.grey}Note: Packages with custom versions may not '
f'compare correctly.{self.endc}')
self.summary_message: str = f'{total_packages}{split_message}{total_sizes}{custom_message}{upgrade_message}'
upgrade_message: str = (f'\n{self.grey}Note: Packages with custom versions may not '
f'compare correctly.{self.endc}')
self.summary_message: str = f'{total_packages}{split_message}{total_sizes}{upgrade_message}'
def set_summary_for_remove(self, remove: int, size_rmv: int) -> None:
"""Set summary for removes.