[bitbake-devel] [PATCH 2/2] data_smart.py: Add isTracking() to datasmart

Peter Seebach peter.seebach at windriver.com
Wed Nov 20 00:31:40 UTC 2013


It would be awesome to have "bitbake -e" work even when sanity failures
occur. But you can't do that if you can't tell whether tracking is
enabled. We add a trivial accessor.

Signed-off-by: Peter Seebach <peter.seebach at windriver.com>
---
 lib/bb/data_smart.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index a1cbaba..4ff2717 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -309,6 +309,9 @@ class DataSmart(MutableMapping):
     def disableTracking(self):
         self._tracking = False
 
+    def isTracking(self):
+        return self._tracking
+
     def expandWithRefs(self, s, varname):
 
         if not isinstance(s, basestring): # sanity check
-- 
1.7.1




More information about the bitbake-devel mailing list