diff options
author | Bob Foerster <robert@erafx.com> | 2010-11-19 11:03:28 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:43 +0000 |
commit | 065da895d2b5eced3e444b20627f8f460e6d14c7 (patch) | |
tree | b1a7557912e8bb843c71e7c4e400ad17489a60c8 /bitbake/lib/bb | |
parent | 7846d8db11809c82b9ed03aa65bb1aad818b238f (diff) | |
download | openembedded-core-065da895d2b5eced3e444b20627f8f460e6d14c7.tar.gz openembedded-core-065da895d2b5eced3e444b20627f8f460e6d14c7.tar.bz2 openembedded-core-065da895d2b5eced3e444b20627f8f460e6d14c7.zip |
cooker: don't fire unnecessary parse progress events
(Bitbake rev: 7cf7d5f14405681496fced3640a50a20ef1acac1)
Signed-off-by: Bob Foerster <robert@erafx.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index ac9758d402..53f88b253c 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1088,7 +1088,9 @@ class CookerParser(object): if info.skipped: self.skipped += 1 finally: - bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata) + # only fire events on percentage boundaries + if self.current % (self.total/100) == 0: + bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata) self.current += 1 return True |