mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated for progress message
This commit is contained in:
parent
96e617ae00
commit
e043d79374
1 changed files with 7 additions and 6 deletions
|
@ -51,6 +51,7 @@ class Slackbuilds(Configs):
|
|||
self.dependencies: list = []
|
||||
self.slackware_command: str = str()
|
||||
self.slackware_command: str = self.installpkg
|
||||
self.progress_message: str = f'{self.cyan}Installing{self.endc}'
|
||||
|
||||
self.option_for_reinstall: bool = self.utils.is_option(
|
||||
['-r', '--reinstall'], flags)
|
||||
|
@ -89,6 +90,7 @@ class Slackbuilds(Configs):
|
|||
self.prepare_slackbuilds_for_build()
|
||||
self.download_the_sources()
|
||||
self.set_slackware_command()
|
||||
self.set_progress_message()
|
||||
self.build_and_install_the_slackbuilds()
|
||||
elapsed_time: float = time.time() - start
|
||||
|
||||
|
@ -219,13 +221,12 @@ class Slackbuilds(Configs):
|
|||
|
||||
def install_package(self, name: str) -> None:
|
||||
package: str = self.find_package_for_install(name)
|
||||
|
||||
progress_message: str = f'{self.cyan}Installing{self.endc}'
|
||||
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)
|
||||
self.multi_proc.process(command, package, self.progress_message)
|
||||
|
||||
def set_progress_message(self):
|
||||
if self.mode == 'upgrade' or self.option_for_reinstall:
|
||||
self.progress_message: str = f'{self.cyan}Upgrading{self.endc}'
|
||||
|
||||
def set_slackware_command(self) -> None:
|
||||
if self.option_for_reinstall:
|
||||
|
|
Loading…
Reference in a new issue