diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-04-04 09:36:22 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-04-05 17:17:29 -0700 |
commit | 7942833ca0685cf4f3b243dde6203499ef97420c (patch) | |
tree | a8a4e86eb051f0f91b20ea7366a6322ee3c477d0 /lib/bb | |
parent | a4f62433845c29f98c6a9746d5d2847bf9506ea5 (diff) | |
download | bitbake-7942833ca0685cf4f3b243dde6203499ef97420c.tar.gz |
persist_data: add has_key
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/persist_data.py | 3 |
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""" |