summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Foerster <robert@erafx.com>2010-11-19 11:03:28 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:43 +0000
commit065da895d2b5eced3e444b20627f8f460e6d14c7 (patch)
treeb1a7557912e8bb843c71e7c4e400ad17489a60c8
parent7846d8db11809c82b9ed03aa65bb1aad818b238f (diff)
downloadpoky-065da895d2b5eced3e444b20627f8f460e6d14c7.tar.gz
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>
-rw-r--r--bitbake/lib/bb/cooker.py4
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):
1088 if info.skipped: 1088 if info.skipped:
1089 self.skipped += 1 1089 self.skipped += 1
1090 finally: 1090 finally:
1091 bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata) 1091 # only fire events on percentage boundaries
1092 if self.current % (self.total/100) == 0:
1093 bb.event.fire(bb.event.ParseProgress(self.current), self.cfgdata)
1092 1094
1093 self.current += 1 1095 self.current += 1
1094 return True 1096 return True