Updated for bin installation

This commit is contained in:
Dimitris Zlatanidis 2023-04-04 20:46:13 +03:00
parent 4a6bc7bb69
commit d49f54401b

View file

@ -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):