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 ## slpkg - ChangeLog
### 5.1.0 - 24/05/2024
- Updated:
* Updated message for invalid package version
### 5.0.9 - 23/05/2024 ### 5.0.9 - 23/05/2024
- Added: - 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 * Config to delete sources after build or install packages
### 5.0.8 - 10/05/2024 ### 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 ' 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}') f'{self.utils.convert_file_sizes(size_uncomp)} will be installed.{self.endc}')
if self.mode == 'upgrade': 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(): if self.upgrade_log_file.is_file():
upgrade_message: str = (f'\n{self.red}{self.ascii.failed} Some versions failed, ' upgrade_message: str = (f'\n{self.red}{self.ascii.failed} Some versions failed, '
f'check the /var/log/slpkg/upgrade.log file.{self.endc}') 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}' 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: def set_summary_for_remove(self, remove: int, size_rmv: int) -> None: