mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Make bold
This commit is contained in:
parent
b977445124
commit
7d406aeebb
3 changed files with 9 additions and 3 deletions
|
@ -20,8 +20,10 @@ class Downloader:
|
|||
self.configs = Configs
|
||||
self.colors = self.configs.colour
|
||||
self.color = self.colors()
|
||||
self.bold = self.color['bold']
|
||||
self.green = self.color['green']
|
||||
self.yellow = self.color['yellow']
|
||||
self.byellow = f'{self.bold}{self.yellow}'
|
||||
self.endc = self.color['endc']
|
||||
self.progress = ProgressBar()
|
||||
self.stderr = None
|
||||
|
@ -52,7 +54,7 @@ class Downloader:
|
|||
|
||||
# Terminate process 2 if process 1 finished
|
||||
if not p1.is_alive():
|
||||
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
|
||||
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
|
||||
p2.terminate()
|
||||
|
||||
# Wait until process 2 finish
|
||||
|
|
|
@ -23,7 +23,9 @@ class RemovePackages:
|
|||
self.configs = Configs
|
||||
self.colors = self.configs.colour
|
||||
self.color = self.colors()
|
||||
self.bold = self.color['bold']
|
||||
self.yellow = self.color['yellow']
|
||||
self.byellow = f'{self.bold}{self.yellow}'
|
||||
self.red = self.color['red']
|
||||
self.endc = self.color['endc']
|
||||
self.installed_packages = []
|
||||
|
@ -93,7 +95,7 @@ class RemovePackages:
|
|||
|
||||
# Terminate process 2 if process 1 finished
|
||||
if not p1.is_alive():
|
||||
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
|
||||
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
|
||||
p2.terminate()
|
||||
|
||||
# Wait until process 2 finish
|
||||
|
|
|
@ -37,9 +37,11 @@ class Slackbuilds:
|
|||
self.configs = Configs
|
||||
self.colors = self.configs.colour
|
||||
self.color = self.colors()
|
||||
self.bold = self.color['bold']
|
||||
self.cyan = self.color['cyan']
|
||||
self.red = self.color['red']
|
||||
self.yellow = self.color['yellow']
|
||||
self.byellow = f'{self.bold}{self.yellow}'
|
||||
self.endc = self.color['endc']
|
||||
self.install_order = []
|
||||
self.dependencies = []
|
||||
|
@ -299,7 +301,7 @@ class Slackbuilds:
|
|||
|
||||
# Terminate process 2 if process 1 finished
|
||||
if not p1.is_alive():
|
||||
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
|
||||
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
|
||||
p2.terminate()
|
||||
|
||||
# Wait until process 2 finish
|
||||
|
|
Loading…
Reference in a new issue