diff options
author | Shane Wang <shane.wang@intel.com> | 2012-02-23 21:47:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-23 22:52:17 +0000 |
commit | 8fa33800efa530c765d85a520110285467ff29c2 (patch) | |
tree | 62cdc94429ed5772df63d0f200fdc49ccf0528a0 /bitbake/lib/bb/cache.py | |
parent | de77b9752ab2df56d87dc15ed5cd0d2cd5544dc7 (diff) | |
download | poky-8fa33800efa530c765d85a520110285467ff29c2.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
(Bitbake rev: 9ede881620c501574f014e600cea6947ea908ac2)
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 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 3d89435211..47e814b577 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -336,7 +336,7 @@ class Cache(object): | |||
336 | current_percent = 100 * current_progress / cachesize | 336 | current_percent = 100 * current_progress / cachesize |
337 | if current_percent > previous_percent: | 337 | if current_percent > previous_percent: |
338 | previous_percent = current_percent | 338 | previous_percent = current_percent |
339 | bb.event.fire(bb.event.CacheLoadProgress(current_progress), | 339 | bb.event.fire(bb.event.CacheLoadProgress(current_progress, cachesize), |
340 | self.data) | 340 | self.data) |
341 | 341 | ||
342 | previous_progress += current_progress | 342 | previous_progress += current_progress |