summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-28 11:06:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-30 10:10:36 +0100
commitf80334d8aa680c249d84df9109ceca9e7a479cdd (patch)
treee1e713fd984ff8d84863820b17088c803e9b2e70 /bitbake/lib/bb/cooker.py
parentdd275f46f8586e408655eac899e01d14b56e0919 (diff)
downloadast2050-yocto-poky-f80334d8aa680c249d84df9109ceca9e7a479cdd.zip
ast2050-yocto-poky-f80334d8aa680c249d84df9109ceca9e7a479cdd.tar.gz
bitbake: cooker: Only change self.data if it exists
With the change to more optimal default featureset behaviour, a race was exposed by hob where the code may try and change self.data before it exists. This change avoids that. When the datastore is created, the cooker configuration is used so data tracking is correctly handled regardless. (Bitbake rev: 9d8f7efbc39d64124936ccaeb3c47a112e595d78) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e81d887..5d3ac60 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -207,11 +207,13 @@ class BBCooker:
def enableDataTracking(self):
self.configuration.tracking = True
- self.data.enableTracking()
+ if hasattr(self, "data"):
+ self.data.enableTracking()
def disableDataTracking(self):
self.configuration.tracking = False
- self.data.disableTracking()
+ if hasattr(self, "data"):
+ self.data.disableTracking()
def modifyConfigurationVar(self, var, val, default_file, op):
if op == "append":
OpenPOWER on IntegriCloud