[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1845/8267] bitbake: knotty: don't show number of running tasks in quiet mode
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1845/8267] bitbake: knotty: don't show number of running tasks in quiet mode
- Date: Sat, 16 Dec 2017 22:23:53 +0000 (UTC)
commit 8a45291164afff4e0a2d97042170a52bd19d52cf
Author: Paul Eggleton <paul eggleton linux intel com>
Date: Thu Aug 11 15:36:59 2016 +1200
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>
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 f89f7b3..b30135b 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -256,7 +256,9 @@ class TerminalFilter(object):
content = "Waiting for %s running tasks to finish:" % len(activetasks)
print(content)
else:
- if not len(activetasks):
+ if self.quiet:
+ content = "Running tasks (%s of %s)" % (self.helper.tasknumber_current,
self.helper.tasknumber_total)
+ elif not len(activetasks):
content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current,
self.helper.tasknumber_total)
else:
content = "Currently %2s running tasks (%s of %s)" % (len(activetasks),
self.helper.tasknumber_current, self.helper.tasknumber_total)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]