]> code.ossystems Code Review - openembedded-core.git/commit
buildstats-summary: add eventmask
authorChen Qi <Qi.Chen@windriver.com>
Wed, 20 May 2015 02:21:48 +0000 (10:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 May 2015 06:55:44 +0000 (07:55 +0100)
commit3b635d34d44ee65f8cf93bc180f1ccc1095f2174
tree1a6c9caf0ab2c48cfe591c4e3b31c850efd84dd9
parentf23f129dba66144abf8fe8450320e01fa4c02f5c
buildstats-summary: add eventmask

Add eventmask 'bb.event.BuildCompleted' for buildstats_summary handler to avoid
running the codes in the handler everytime there's an event.

The codes in buildstats_summary only need to run for bb.event.BuildCompleted.
So add this event mask.

Also, we remove the redundant isinstance() statement in the handler.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildstats-summary.bbclass