diff options
| -rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 79325bb6e4..b31a8a18e1 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
| @@ -280,7 +280,7 @@ class TerminalFilter(object): | |||
| 280 | progress = self.helper.tasknumber_current - 1 | 280 | progress = self.helper.tasknumber_current - 1 |
| 281 | if progress < 0: | 281 | if progress < 0: |
| 282 | progress = 0 | 282 | progress = 0 |
| 283 | self.main_progress.update(progress) | 283 | content = self.main_progress.update(progress) |
| 284 | print('') | 284 | print('') |
| 285 | lines = 1 + int(len(content) / (self.columns + 1)) | 285 | lines = 1 + int(len(content) / (self.columns + 1)) |
| 286 | if not self.quiet: | 286 | if not self.quiet: |
| @@ -294,11 +294,10 @@ class TerminalFilter(object): | |||
| 294 | pbar.setmessage('%s:%s' % (tasknum, pbar.msg.split(':', 1)[1])) | 294 | pbar.setmessage('%s:%s' % (tasknum, pbar.msg.split(':', 1)[1])) |
| 295 | if progress > -1: | 295 | if progress > -1: |
| 296 | pbar.setextra(rate) | 296 | pbar.setextra(rate) |
| 297 | output = pbar.update(progress) | 297 | content = pbar.update(progress) |
| 298 | else: | 298 | else: |
| 299 | output = pbar.update(1) | 299 | content = pbar.update(1) |
| 300 | if not output or (len(output) <= pbar.term_width): | 300 | print('') |
| 301 | print('') | ||
| 302 | else: | 301 | else: |
| 303 | content = "%s: %s" % (tasknum, task) | 302 | content = "%s: %s" % (tasknum, task) |
| 304 | print(content) | 303 | print(content) |
