summaryrefslogtreecommitdiffstats
path: root/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-04-04 09:36:22 -0700
committerChris Larson <chris_larson@mentor.com>2011-04-05 17:17:29 -0700
commit7942833ca0685cf4f3b243dde6203499ef97420c (patch)
treea8a4e86eb051f0f91b20ea7366a6322ee3c477d0 /lib/bb/persist_data.py
parenta4f62433845c29f98c6a9746d5d2847bf9506ea5 (diff)
downloadbitbake-contrib-7942833ca0685cf4f3b243dde6203499ef97420c.tar.gz
persist_data: add has_key
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r--lib/bb/persist_data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index 81f0845dd..baade7c4f 100644
--- a/lib/bb/persist_data.py
+++ b/lib/bb/persist_data.py
@@ -106,6 +106,9 @@ class SQLTable(collections.MutableMapping):
def clear(self):
self._execute("DELETE FROM %s;" % self.table)
+ def has_key(self, key):
+ return key in self
+
class PersistData(object):
"""Deprecated representation of the bitbake persistent data store"""