Fixed for upgrade

This commit is contained in:
Dimitris Zlatanidis 2023-05-17 09:10:07 +03:00
parent 8f6a3b70dc
commit a3467cb31e

View file

@ -217,18 +217,18 @@ class Slackbuilds(Configs):
def install_package(self, name: str) -> None:
package: str = self.find_package_for_install(name)
self.set_slackware_command(name)
self.set_slackware_command()
progress_message: str = f'{self.cyan}Installing{self.endc}'
if self.mode == 'upgrade':
if self.mode == 'upgrade' or self.option_for_reinstall:
progress_message: str = f'{self.cyan}Upgrading{self.endc}'
command: str = f'{self.slackware_command} {self.tmp_path}/{package}'
self.multi_proc.process(command, package, progress_message)
def set_slackware_command(self, name: str) -> None:
def set_slackware_command(self) -> None:
self.slackware_command: str = self.installpkg
if self.option_for_reinstall and self.utils.is_package_installed(name):
if self.option_for_reinstall:
self.slackware_command: str = self.reinstall
def find_package_for_install(self, name: str) -> str: