diff options
author | Jochen Jaegers <jochen.jaegers@riedel-at.de> | 2017-01-04 19:00:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-09 13:39:11 +0000 |
commit | 8db49696e46bc780d440f8d4985515bd0f9349d0 (patch) | |
tree | e6364547d2b09c571a41ae6ffdb1898dc88d5106 /meta | |
parent | fc89a3f739ff25306ea91d9bdb424fc8389bdf72 (diff) | |
download | poky-8db49696e46bc780d440f8d4985515bd0f9349d0.tar.gz |
toaster: prevent use of unset variable BUILDSTATS_BASE
(From OE-Core rev: aca5555881edf4751540203591aadbaf3d17bf41)
Signed-off-by: Jochen Jaegers <jochen.jaegers@riedel-at.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/toaster.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 4ea20567a3..a68557882c 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass | |||
@@ -157,11 +157,11 @@ python toaster_collect_task_stats() { | |||
157 | import bb.utils | 157 | import bb.utils |
158 | import os | 158 | import os |
159 | 159 | ||
160 | toaster_statlist_file = os.path.join(e.data.getVar('BUILDSTATS_BASE'), "toasterstatlist") | ||
161 | |||
162 | if not e.data.getVar('BUILDSTATS_BASE'): | 160 | if not e.data.getVar('BUILDSTATS_BASE'): |
163 | return # if we don't have buildstats, we cannot collect stats | 161 | return # if we don't have buildstats, we cannot collect stats |
164 | 162 | ||
163 | toaster_statlist_file = os.path.join(e.data.getVar('BUILDSTATS_BASE'), "toasterstatlist") | ||
164 | |||
165 | def stat_to_float(value): | 165 | def stat_to_float(value): |
166 | return float(value.strip('% \n\r')) | 166 | return float(value.strip('% \n\r')) |
167 | 167 | ||
@@ -361,4 +361,4 @@ do_populate_sdk[postfuncs] += "toaster_artifact_dumpdata " | |||
361 | do_populate_sdk[vardepsexclude] += "toaster_artifact_dumpdata " | 361 | do_populate_sdk[vardepsexclude] += "toaster_artifact_dumpdata " |
362 | 362 | ||
363 | do_populate_sdk_ext[postfuncs] += "toaster_artifact_dumpdata " | 363 | do_populate_sdk_ext[postfuncs] += "toaster_artifact_dumpdata " |
364 | do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata " \ No newline at end of file | 364 | do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata " |