[improvement] download clients parameters

This commit is contained in:
Vinicius Moreira
2020-06-01 16:34:53 -03:00
parent 5327747bbf
commit 0912384781
3 changed files with 18 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ import time
from threading import Thread
from bauh.api.abstract.handler import ProcessWatcher
from bauh.commons.html import bold
from bauh.view.util.translation import I18n
@@ -45,8 +46,8 @@ class TransactionStatusHandler(Thread):
perc = self.gen_percentage()
self.downloading += 1
self.watcher.change_substatus('{}[{}/{}] {} {}'.format(perc, self.downloading, self.npkgs,
self.i18n['downloading'].capitalize(), output.split(' ')[1].strip()))
self.watcher.change_substatus('{}[{}/{}] {} {} {}'.format(perc, self.downloading, self.npkgs, bold('[pacman]'),
self.i18n['downloading'].capitalize(), output.split(' ')[1].strip()))
elif output.startswith('upgrading'):
if self.get_performed() < self.npkgs:
perc = self.gen_percentage()