mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +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:
|
if info.skipped:
|
||||||
self.skipped += 1
|
self.skipped += 1
|
||||||
finally:
|
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
|
self.current += 1
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user