aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/toaster.bbclass
diff options
context:
space:
mode:
authorJochen Jaegers <jochen.jaegers@riedel-at.de>2017-01-04 19:00:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-09 13:27:01 +0000
commitaca5555881edf4751540203591aadbaf3d17bf41 (patch)
tree1a67eacf6ff575cbc4309167c183ae4df0eed3fd /meta/classes/toaster.bbclass
parentaa87b1a4dcc14e4dfe719b6c55045c5662bc59c2 (diff)
downloadopenembedded-core-contrib-aca5555881edf4751540203591aadbaf3d17bf41.tar.gz
toaster: prevent use of unset variable BUILDSTATS_BASE
Signed-off-by: Jochen Jaegers <jochen.jaegers@riedel-at.de> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r--meta/classes/toaster.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 4ea20567a3a..a68557882c9 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -157,11 +157,11 @@ python toaster_collect_task_stats() {
import bb.utils
import os
- toaster_statlist_file = os.path.join(e.data.getVar('BUILDSTATS_BASE'), "toasterstatlist")
-
if not e.data.getVar('BUILDSTATS_BASE'):
return # if we don't have buildstats, we cannot collect stats
+ toaster_statlist_file = os.path.join(e.data.getVar('BUILDSTATS_BASE'), "toasterstatlist")
+
def stat_to_float(value):
return float(value.strip('% \n\r'))
@@ -361,4 +361,4 @@ do_populate_sdk[postfuncs] += "toaster_artifact_dumpdata "
do_populate_sdk[vardepsexclude] += "toaster_artifact_dumpdata "
do_populate_sdk_ext[postfuncs] += "toaster_artifact_dumpdata "
-do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata " \ No newline at end of file
+do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata "