summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-04-04 09:36:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-06 15:50:14 +0100
commitd43e7a91f29443b189b76d3b4fb55661f9fb8748 (patch)
tree7f8cd276e0d48e119504a22ddcb56b4f34450379 /bitbake
parent7fc020aa15d918b215575576d91160afae7f4d70 (diff)
downloadpoky-d43e7a91f29443b189b76d3b4fb55661f9fb8748.tar.gz
persist_data: add has_key
(Bitbake rev: 7942833ca0685cf4f3b243dde6203499ef97420c) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/persist_data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index eae64cf792..bf8fd77bf1 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -110,6 +110,9 @@ class SQLTable(collections.MutableMapping):
110 for row in data: 110 for row in data:
111 yield row[0] 111 yield row[0]
112 112
113 def has_key(self, key):
114 return key in self
115
113 116
114class SQLData(object): 117class SQLData(object):
115 """Object representing the persistent data""" 118 """Object representing the persistent data"""