mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Fixed for progress bar
This commit is contained in:
parent
1b1b34005a
commit
c3d034b00b
3 changed files with 6 additions and 6 deletions
|
@ -228,7 +228,7 @@ class Packages(Configs):
|
|||
self.done_process()
|
||||
|
||||
def bar_progress(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
message: str = 'Resolving dependencies'
|
||||
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
|
||||
self.bar_process.start()
|
||||
|
@ -236,7 +236,7 @@ class Packages(Configs):
|
|||
print('\rResolving dependencies... ', end='')
|
||||
|
||||
def done_process(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
time.sleep(0.1)
|
||||
self.bar_process.terminate()
|
||||
self.bar_process.join()
|
||||
|
|
|
@ -115,7 +115,7 @@ class LoadData(Configs):
|
|||
return data
|
||||
|
||||
def bar_progress(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
message: str = 'Database loading'
|
||||
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
|
||||
self.bar_process.start()
|
||||
|
@ -123,7 +123,7 @@ class LoadData(Configs):
|
|||
print('\rDatabase loading... ', end='')
|
||||
|
||||
def done_process(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
time.sleep(0.1)
|
||||
self.bar_process.terminate()
|
||||
self.bar_process.join()
|
||||
|
|
|
@ -300,7 +300,7 @@ class Slackbuilds(Configs):
|
|||
self.done_process()
|
||||
|
||||
def bar_progress(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
message: str = 'Resolving dependencies'
|
||||
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
|
||||
self.bar_process.start()
|
||||
|
@ -308,7 +308,7 @@ class Slackbuilds(Configs):
|
|||
print('\rResolving dependencies... ', end='')
|
||||
|
||||
def done_process(self) -> None:
|
||||
if self.option_for_progress_bar:
|
||||
if self.progress_bar or self.option_for_progress_bar:
|
||||
time.sleep(0.1)
|
||||
self.bar_process.terminate()
|
||||
self.bar_process.join()
|
||||
|
|
Loading…
Add table
Reference in a new issue