aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-03-11 06:30:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-11 16:17:17 +0000
commit6540e98090d6a88607489a23c063be338bcc3b57 (patch)
treede121644ff7e3c4fd16b4ee47d37ad7eae72e71e /lib/bb/ui/knotty.py
parent7c0fa6ba66cdb956b37d94055307cde857633df9 (diff)
downloadbitbake-6540e98090d6a88607489a23c063be338bcc3b57.tar.gz
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. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r--lib/bb/ui/knotty.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 521c262e4..82aa7c464 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -75,10 +75,8 @@ class BBProgress(progressbar.ProgressBar):
extrastr = str(extra)
if extrastr[0] != ' ':
extrastr = ' ' + extrastr
- if extrastr[-1] != ' ':
- extrastr += ' '
else:
- extrastr = ' '
+ extrastr = ''
self.widgets[self.extrapos] = extrastr
def _need_update(self):