diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-04-04 09:36:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-06 15:50:14 +0100 |
commit | d43e7a91f29443b189b76d3b4fb55661f9fb8748 (patch) | |
tree | 7f8cd276e0d48e119504a22ddcb56b4f34450379 /bitbake/lib/bb/persist_data.py | |
parent | 7fc020aa15d918b215575576d91160afae7f4d70 (diff) | |
download | 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/bb/persist_data.py')
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 3 |
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 | ||
114 | class SQLData(object): | 117 | class SQLData(object): |
115 | """Object representing the persistent data""" | 118 | """Object representing the persistent data""" |