]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildstats: don't expand variable pointing to SystemStats
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 22 Dec 2016 03:13:58 +0000 (16:13 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:27:00 +0000 (13:27 +0000)
We're placing an object into the datastore - it's very definitely not
something we want to be expanding.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildstats.bbclass

index 8703cb2b334aec7584dae7d5ba59b2e777ab9a8c..8d7b5988e3dd82cfb598e5b2aa37a1b03e9b730c 100644 (file)
@@ -197,7 +197,7 @@ python runqueue_stats () {
     # are available that we need to find the output directory.
     # The persistent SystemStats is stored in the datastore and
     # closed when the build is done.
-    system_stats = d.getVar('_buildstats_system_stats')
+    system_stats = d.getVar('_buildstats_system_stats', False)
     if not system_stats and isinstance(e, (bb.runqueue.sceneQueueTaskStarted, bb.runqueue.runQueueTaskStarted)):
         system_stats = buildstats.SystemStats(d)
         d.setVar('_buildstats_system_stats', system_stats)