summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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/lib
parent7fc020aa15d918b215575576d91160afae7f4d70 (diff)
downloadast2050-yocto-poky-d43e7a91f29443b189b76d3b4fb55661f9fb8748.zip
ast2050-yocto-poky-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/lib')
-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 eae64cf..bf8fd77 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -110,6 +110,9 @@ class SQLTable(collections.MutableMapping):
for row in data:
yield row[0]
+ def has_key(self, key):
+ return key in self
+
class SQLData(object):
"""Object representing the persistent data"""
OpenPOWER on IntegriCloud