summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
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-13 09:43:40 +0000
commit1e275980f20b48ff9c7950dac6dca1fbb2f88a7f (patch)
tree721902a74cd505291ff44f2ea52369f7fb90e704 /bitbake/lib/bb/ui
parent404f2aef94f8db6e46101e4ec9a6aa7e85b97880 (diff)
downloadpoky-1e275980f20b48ff9c7950dac6dca1fbb2f88a7f.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 521c262e45..82aa7c4644 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -75,10 +75,8 @@ class BBProgress(progressbar.ProgressBar):
75 extrastr = str(extra) 75 extrastr = str(extra)
76 if extrastr[0] != ' ': 76 if extrastr[0] != ' ':
77 extrastr = ' ' + extrastr 77 extrastr = ' ' + extrastr
78 if extrastr[-1] != ' ':
79 extrastr += ' '
80 else: 78 else:
81 extrastr = ' ' 79 extrastr = ''
82 self.widgets[self.extrapos] = extrastr 80 self.widgets[self.extrapos] = extrastr
83 81
84 def _need_update(self): 82 def _need_update(self):