mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Fixed for skipping
This commit is contained in:
parent
7d65112cb5
commit
d0d8c7c1e8
1 changed files with 6 additions and 6 deletions
|
@ -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. """
|
||||
|
|
Loading…
Reference in a new issue