mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +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 = Downloader(self.tmp_slpkg, pkg_urls, self.flags)
|
||||||
down.download()
|
down.download()
|
||||||
|
else:
|
||||||
|
version: str = BinQueries(pkg).version()
|
||||||
|
self.view_message.view_skipping_packages(pkg, version)
|
||||||
|
print()
|
||||||
|
|
||||||
def checksum(self) -> None:
|
def checksum(self) -> None:
|
||||||
""" Packages checksums. """
|
""" Packages checksums. """
|
||||||
|
@ -93,7 +97,6 @@ class Packages(Configs):
|
||||||
slack_command: str = self.reinstall
|
slack_command: str = self.reinstall
|
||||||
|
|
||||||
message: str = f'{self.cyan}Installing{self.endc}'
|
message: str = f'{self.cyan}Installing{self.endc}'
|
||||||
print()
|
|
||||||
|
|
||||||
for package in self.binary_packages:
|
for package in self.binary_packages:
|
||||||
self.process_message: str = f"package '{package}' to install"
|
self.process_message: str = f"package '{package}' to install"
|
||||||
|
@ -102,11 +105,8 @@ class Packages(Configs):
|
||||||
|
|
||||||
def skip_installed_package(self, package) -> bool:
|
def skip_installed_package(self, package) -> bool:
|
||||||
""" Skip installed package when the option --skip-installed is applied. """
|
""" 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
|
return (self.utils.is_package_installed(package) and not self.utils.is_option(self.flag_reinstall, self.flags)
|
||||||
self.utils.is_option(self.flag_skip_installed, 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
|
|
||||||
|
|
||||||
def multi_process(self, command: str, filename: str, message: str) -> None:
|
def multi_process(self, command: str, filename: str, message: str) -> None:
|
||||||
""" Starting multiprocessing install/upgrade process. """
|
""" Starting multiprocessing install/upgrade process. """
|
||||||
|
|
Loading…
Reference in a new issue