[oe-commits] [bitbake] 02/03: knotty: Remove extra whitespace after task progress bars
git at git.openembedded.org
git at git.openembedded.org
Sat Mar 11 16:18:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 6540e98090d6a88607489a23c063be338bcc3b57
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
AuthorDate: Sat Mar 11 06:30:06 2017 +0100
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 at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/ui/knotty.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 521c262..82aa7c4 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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list