diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 78837888..f5f9e9ce 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -198,41 +198,41 @@ class ViewMessage(Configs): self.ascii.draw_bottom_line() if option in ['install', 'upgrade']: - self.summary_for_install_and_upgrade(install, upgrade, size_comp, size_uncomp) + self.set_summary_for_install_and_upgrade(install, upgrade, size_comp, size_uncomp) elif option == 'build': - self.summary_for_build(packages) + self.set_summary_for_build(packages) elif option == 'remove': - self.summary_for_remove(remove, size_rmv) + self.set_summary_for_remove(remove, size_rmv) elif option == 'download': - self.summary_for_download(packages, size_comp) + self.set_summary_for_download(packages, size_comp) print(self.summary_message) - def summary_for_install_and_upgrade(self, install: int, upgrade: int, size_comp: int, size_uncomp: int) -> None: + def set_summary_for_install_and_upgrade(self, install: int, upgrade: int, size_comp: int, size_uncomp: int) -> None: self.summary_message: str = ( f'{self.grey}Total {install} packages will be ' f'installed and {upgrade} will be upgraded, and total ' 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} ') - def summary_for_build(self, packages: list) -> None: + def set_summary_for_build(self, packages: list) -> None: self.summary_message: str = ( f'{self.grey}Total {len(packages)} packages ' f'will be build in {self.tmp_path} folder.{self.endc}') - def summary_for_remove(self, remove: int, size_rmv: int) -> None: + def set_summary_for_remove(self, remove: int, size_rmv: int) -> None: self.summary_message: str = ( f'{self.grey}Total {remove} packages ' f'will be removed and {self.utils.convert_file_sizes(size_rmv)} ' f'of space will be freed up.{self.endc}') - def summary_for_download(self, packages: list, size_comp: int) -> None: + def set_summary_for_download(self, packages: list, size_comp: int) -> None: self.summary_message: str = ( f'{self.grey}Total {len(packages)} packages and {self.utils.convert_file_sizes(size_comp)} ' f'will be downloaded in {self.download_only} folder.{self.endc}' ) - def build_package_and_version(self, package: str) -> str: + def set_build_package_and_version(self, package: str) -> str: installed_package: str = self.utils.is_package_installed(package) version: str = self.utils.split_package(installed_package)['version'] return f'{package}-{version}'