diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 5f0bab8d..3c90ff32 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -78,6 +78,10 @@ class Packages(Configs): down = Downloader(self.tmp_slpkg, pkg_urls, self.flags) down.download() + else: + version: str = BinQueries(pkg).version() + self.view_message.view_skipping_packages(pkg, version) + print() def checksum(self) -> None: """ Packages checksums. """ @@ -93,7 +97,6 @@ class Packages(Configs): slack_command: str = self.reinstall message: str = f'{self.cyan}Installing{self.endc}' - print() for package in self.binary_packages: self.process_message: str = f"package '{package}' to install" @@ -102,11 +105,8 @@ class Packages(Configs): def skip_installed_package(self, package) -> bool: """ Skip installed package when the option --skip-installed is applied. """ - if (self.utils.is_package_installed(package) and not self.utils.is_option(self.flag_reinstall, self.flags) or - self.utils.is_option(self.flag_skip_installed, self.flags)): - version: str = BinQueries(package).version() - self.view_message.view_skipping_packages(package, version) - return True + return (self.utils.is_package_installed(package) and not self.utils.is_option(self.flag_reinstall, self.flags) + or self.utils.is_option(self.flag_skip_installed, self.flags)) def multi_process(self, command: str, filename: str, message: str) -> None: """ Starting multiprocessing install/upgrade process. """