Updated for message

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-24 19:26:52 +03:00
parent 496a2be06b
commit 8947b061ee
2 changed files with 9 additions and 3 deletions

View file

@ -1,9 +1,14 @@
## slpkg - ChangeLog
### 5.1.0 - 24/05/2024
- Updated:
* Updated message for invalid package version
### 5.0.9 - 23/05/2024
- Added:
* Inform message for invalid package version with the upgrade command
* Inform message for invalid package version with the upgrade commandy
* Config to delete sources after build or install packages
### 5.0.8 - 10/05/2024

View file

@ -282,11 +282,12 @@ class View(Configs): # pylint: disable=[R0902]
total_sizes: str = (f'{self.utils.convert_file_sizes(size_comp)} will be downloaded and '
f'{self.utils.convert_file_sizes(size_uncomp)} will be installed.{self.endc}')
if self.mode == 'upgrade':
custom_message: str = (f'\n{self.grey}Note: Packages with custom versions may not '
f'compare correctly.{self.endc}')
if self.upgrade_log_file.is_file():
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}'
def set_summary_for_remove(self, remove: int, size_rmv: int) -> None: