bitbake: knotty: Remove extra whitespace after task progress bars
For some reason, BBProgress.setextra() always adds a space at the end. This prevents the task progress bars from filling the entire width of the terminal, making them stop one character short. This looks odd when shown together with the main progress bar, which does fill the entire terminal width. (Bitbake rev: 6540e98090d6a88607489a23c063be338bcc3b57) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
404f2aef94
commit
1e275980f2
|
@ -75,10 +75,8 @@ class BBProgress(progressbar.ProgressBar):
|
||||||
extrastr = str(extra)
|
extrastr = str(extra)
|
||||||
if extrastr[0] != ' ':
|
if extrastr[0] != ' ':
|
||||||
extrastr = ' ' + extrastr
|
extrastr = ' ' + extrastr
|
||||||
if extrastr[-1] != ' ':
|
|
||||||
extrastr += ' '
|
|
||||||
else:
|
else:
|
||||||
extrastr = ' '
|
extrastr = ''
|
||||||
self.widgets[self.extrapos] = extrastr
|
self.widgets[self.extrapos] = extrastr
|
||||||
|
|
||||||
def _need_update(self):
|
def _need_update(self):
|
||||||
|
|
Loading…
Reference in New Issue