]> code.ossystems Code Review - openembedded-core.git/commit
toaster.bbclass: fix crash on buildstats collection
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Wed, 18 Dec 2013 19:24:47 +0000 (19:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Dec 2013 09:05:01 +0000 (09:05 +0000)
commit7f2637ec8d1b8840c31255572b5cb058777382e7
treed5ce15a9eabfb15289fffbf4946890bedf2bd9d8
parent57794c201aa732392a135e03e04faf18929f645f
toaster.bbclass: fix crash on buildstats collection

Toaster needs buildstats to be enabled in order to
collect task statistics. The toaster.bbclass didn't
have a guard to stop task data collection if the buildstats
weren't enabled, leading to a crash.

This patch verifies that the task variables are defined before
trying to use them.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toaster.bbclass