All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Tinfoil fix
@ 2014-09-03 16:06 Paul Eggleton
  2014-09-03 16:06 ` [PATCH 1/1] tinfoil: add a means of enabling variable history tracking Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2014-09-03 16:06 UTC (permalink / raw)
  To: bitbake-devel

The following change since commit 8f5c1cdae1ee6ce04ae0d04d0b95bd80efbf7534:

  process: Ensure abnormal exits set an error level (2014-09-02 18:10:17 +0100)

is available in the git repository at:

  git://git.yoctoproject.org/poky-contrib paule/bb-fixtracking
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bb-fixtracking

Paul Eggleton (1):
  tinfoil: add a means of enabling variable history tracking

 lib/bb/tinfoil.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

-- 
1.9.3



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] tinfoil: add a means of enabling variable history tracking
  2014-09-03 16:06 [PATCH 0/1] Tinfoil fix Paul Eggleton
@ 2014-09-03 16:06 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2014-09-03 16:06 UTC (permalink / raw)
  To: bitbake-devel

Unfortunately it seems like the external use of the cooker
enableDataTracking() function broke at some point since the code that
reads it now runs within BBCooker's constructor. Since this now has to
be done early, add a parameter to Tinfoil's constructor to allow
enabling variable history tracking.

Fixes [YOCTO #6676].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 lib/bb/tinfoil.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index 751a2d7..6bcbd47 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -25,12 +25,12 @@ import bb.cache
 import bb.cooker
 import bb.providers
 import bb.utils
-from bb.cooker import state, BBCooker
+from bb.cooker import state, BBCooker, CookerFeatures
 from bb.cookerdata import CookerConfiguration, ConfigParameters
 import bb.fetch2
 
 class Tinfoil:
-    def __init__(self, output=sys.stdout):
+    def __init__(self, output=sys.stdout, tracking=False):
         # Needed to avoid deprecation warnings with python 2.6
         warnings.filterwarnings("ignore", category=DeprecationWarning)
 
@@ -48,7 +48,10 @@ class Tinfoil:
         configparams = TinfoilConfigParameters(parse_only=True)
         self.config.setConfigParameters(configparams)
         self.config.setServerRegIdleCallback(self.register_idle_function)
-        self.cooker = BBCooker(self.config)
+        features = []
+        if tracking:
+            features.append(CookerFeatures.BASEDATASTORE_TRACKING)
+        self.cooker = BBCooker(self.config, features)
         self.config_data = self.cooker.data
         bb.providers.logger.setLevel(logging.ERROR)
         self.cooker_data = None
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-03 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03 16:06 [PATCH 0/1] Tinfoil fix Paul Eggleton
2014-09-03 16:06 ` [PATCH 1/1] tinfoil: add a means of enabling variable history tracking Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.