summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-30 08:25:13 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:45 +0000
commitb8aedaa6b54eb81739c288b59a11e1df9f182ec5 (patch)
treec4b94e5cb4447cd08c5a790e06977ef4783a40cf /bitbake/lib/bb/ui/knotty.py
parentb890c19a3308ff88d8450a2811afd2b084f3aafe (diff)
downloadpoky-b8aedaa6b54eb81739c288b59a11e1df9f182ec5.tar.gz
cooker: no cached in progressbar and add ETA
Rather than updating the progress bar based on the recipe being processed (whether cached or parsed), consider only parsed recipes. This reduces the instability in progress rate introduced by the cached entries, and allows the ETA to be resurrected and be a bit more useful. (Bitbake rev: 618480f7739f6ae846f67a57bee5a78efb37839d) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 8e5249bb62..0c0cdf1fe7 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -31,7 +31,7 @@ from bb.ui import uihelper
31 31
32logger = logging.getLogger("BitBake") 32logger = logging.getLogger("BitBake")
33widgets = ['Parsing recipes: ', progressbar.Percentage(), ' ', 33widgets = ['Parsing recipes: ', progressbar.Percentage(), ' ',
34 progressbar.Bar()] 34 progressbar.Bar(), ' ', progressbar.ETA()]
35 35
36class BBLogFormatter(logging.Formatter): 36class BBLogFormatter(logging.Formatter):
37 """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" 37 """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is"""
@@ -147,7 +147,7 @@ def init(server, eventHandler):
147 continue 147 continue
148 if isinstance(event, bb.event.ParseCompleted): 148 if isinstance(event, bb.event.ParseCompleted):
149 if interactive: 149 if interactive:
150 pbar.update(event.total) 150 pbar.update(pbar.maxval)
151 else: 151 else:
152 sys.stdout.write("done.\n") 152 sys.stdout.write("done.\n")
153 sys.stdout.flush() 153 sys.stdout.flush()