summaryrefslogtreecommitdiffstats
path: root/lib/bb/cache.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-02-23 21:47:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:51:50 +0000
commit9ede881620c501574f014e600cea6947ea908ac2 (patch)
tree0004cf85add0bef88881ddf459459260ed74ca3d /lib/bb/cache.py
parent28501612efdfc6ee47576cc90deb6e897883e7f5 (diff)
downloadopenembedded-core-contrib-9ede881620c501574f014e600cea6947ea908ac2.tar.gz
bitbake: change for adding progress bar in Hob2.
The changes include: - Clean some events in event.py - Fire essential events for Hob2 to handle with more information. - knotty changes Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cache.py')
-rw-r--r--lib/bb/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 3d89435211..47e814b577 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -336,7 +336,7 @@ class Cache(object):
current_percent = 100 * current_progress / cachesize
if current_percent > previous_percent:
previous_percent = current_percent
- bb.event.fire(bb.event.CacheLoadProgress(current_progress),
+ bb.event.fire(bb.event.CacheLoadProgress(current_progress, cachesize),
self.data)
previous_progress += current_progress