mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated for bin installation
This commit is contained in:
parent
4a6bc7bb69
commit
d49f54401b
1 changed files with 11 additions and 8 deletions
|
@ -154,16 +154,19 @@ class Packages(Configs):
|
|||
|
||||
def install_packages(self) -> None:
|
||||
""" Install the packages. """
|
||||
message: str = f'{self.cyan}Installing{self.endc}'
|
||||
slack_command: str = self.installpkg
|
||||
if self.utils.is_option(self.flag_reinstall, self.flags) or self.mode == 'upgrade':
|
||||
message: str = f'{self.cyan}Upgrade{self.endc}'
|
||||
slack_command: str = self.reinstall
|
||||
|
||||
for package in self.binary_packages:
|
||||
self.process_message: str = f"package '{package}' to install"
|
||||
command: str = f'{slack_command} {self.tmp_slpkg}/{package}'
|
||||
|
||||
message: str = f'{self.cyan}Installing{self.endc}'
|
||||
slack_command: str = self.installpkg
|
||||
|
||||
if (self.utils.is_option(self.flag_reinstall, self.flags) and
|
||||
self.utils.is_package_installed(package) or self.mode == 'upgrade'):
|
||||
|
||||
message: str = f'{self.cyan}Upgrade{self.endc}'
|
||||
slack_command: str = self.reinstall
|
||||
|
||||
command: str = f'{slack_command} {self.tmp_slpkg}/{package}'
|
||||
self.process_message: str = f"package '{package}' to install"
|
||||
self.multi_process(command, package, message)
|
||||
|
||||
if not self.utils.is_option(self.flag_resolve_off, self.flags):
|
||||
|
|
Loading…
Reference in a new issue