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

login
register
mail settings
Submitter Peter Seebach
Date Nov. 20, 2013, 12:31 a.m.
Message ID <a85ab002cac4c7fe0881a8fd73fe6011dbddcff8.1384907121.git.peter.seebach@windriver.com>
Download mbox | patch
Permalink /patch/62005/
State New
Headers show

Comments

Peter Seebach - Nov. 20, 2013, 12:31 a.m.
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@windriver.com>
---
 lib/bb/data_smart.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

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