]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cooker: don't fire unnecessary parse progress events
authorBob Foerster <robert@erafx.com>
Fri, 19 Nov 2010 16:03:28 +0000 (11:03 -0500)
committerChris Larson <chris_larson@mentor.com>
Sun, 21 Nov 2010 18:24:47 +0000 (11:24 -0700)
Signed-off-by: Bob Foerster <robert@erafx.com>
lib/bb/cooker.py

index b600e3e8eb5ff936221a58032fb84433769ca284..d0f2b62bd5a4be78b02cd645991ced193e0605eb 100644 (file)
@@ -1052,7 +1052,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