[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5064/8267] bitbake: knotty: Remove extra whitespace after task progress bars



commit 1e275980f20b48ff9c7950dac6dca1fbb2f88a7f
Author: Peter Kjellerstedt <peter kjellerstedt axis com>
Date:   Sat Mar 11 06:30:06 2017 +0100

    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>

 bitbake/lib/bb/ui/knotty.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 521c262..82aa7c4 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/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):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]