diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-08-11 15:36:59 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-17 10:22:58 +0100 |
commit | 8a45291164afff4e0a2d97042170a52bd19d52cf (patch) | |
tree | e48ff7c1c35d806e7266b33f579437d1d9b1cca5 /bitbake | |
parent | ea0800049d5a897ddf935ecdaa6e7d810166367b (diff) | |
download | poky-8a45291164afff4e0a2d97042170a52bd19d52cf.tar.gz |
bitbake: knotty: don't show number of running tasks in quiet mode
There's not a whole lot of point showing how many tasks are running when
we're in quiet mode, it just looks a bit strange particularly when it's
not running any tasks.
(Bitbake rev: 5317200d9cd73c6f971bc1b0cfe8692749e27e3a)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index f89f7b3c30..b30135ba28 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -256,7 +256,9 @@ class TerminalFilter(object): | |||
256 | content = "Waiting for %s running tasks to finish:" % len(activetasks) | 256 | content = "Waiting for %s running tasks to finish:" % len(activetasks) |
257 | print(content) | 257 | print(content) |
258 | else: | 258 | else: |
259 | if not len(activetasks): | 259 | if self.quiet: |
260 | content = "Running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) | ||
261 | elif not len(activetasks): | ||
260 | content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) | 262 | content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) |
261 | else: | 263 | else: |
262 | content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) | 264 | content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) |