mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7846d8db11
commit
065da895d2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user