mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Fixed for upgrade
This commit is contained in:
parent
8f6a3b70dc
commit
a3467cb31e
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue