Patchwork [bitbake-devel] cooker: Only change if it exists

mail settings
Submitter Richard Purdie
Date March 28, 2014, 11:06 a.m.
Message ID <1396004778.24890.172.camel@ted>
Download mbox | patch
Permalink /patch/69565/
State New
Headers show


Richard Purdie - March 28, 2014, 11:06 a.m.
With the change to more optimal default featureset behaviour, a race was
exposed by hob where the code may try and change before it
exists. This change avoids that.

When the datastore is created, the cooker configuration is used so
data tracking is correctly handled regardless.

Signed-off-by: Richard Purdie <>


diff --git a/bitbake/lib/bb/ b/bitbake/lib/bb/
index e81d887..5d3ac60 100644
--- a/bitbake/lib/bb/
+++ b/bitbake/lib/bb/
@@ -207,11 +207,13 @@  class BBCooker:
     def enableDataTracking(self):
         self.configuration.tracking = True
+        if hasattr(self, "data"):
     def disableDataTracking(self):
         self.configuration.tracking = False
+        if hasattr(self, "data"):
     def modifyConfigurationVar(self, var, val, default_file, op):
         if op == "append":