diff options
| -rw-r--r-- | meta/classes/toaster.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index e1a93b5702..7c404b9e65 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass | |||
| @@ -165,6 +165,9 @@ python toaster_collect_task_stats() { | |||
| 165 | import bb.utils | 165 | import bb.utils |
| 166 | import os | 166 | import os |
| 167 | 167 | ||
| 168 | if not e.data.getVar('BUILDSTATS_BASE', True): | ||
| 169 | return # if we don't have buildstats, we cannot collect stats | ||
| 170 | |||
| 168 | def _append_read_list(v): | 171 | def _append_read_list(v): |
| 169 | lock = bb.utils.lockfile(e.data.expand("${TOPDIR}/toaster.lock"), False, True) | 172 | lock = bb.utils.lockfile(e.data.expand("${TOPDIR}/toaster.lock"), False, True) |
| 170 | 173 | ||
