]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
persist_data: add has_key
authorChris Larson <chris_larson@mentor.com>
Mon, 4 Apr 2011 16:36:22 +0000 (09:36 -0700)
committerChris Larson <chris_larson@mentor.com>
Wed, 6 Apr 2011 00:17:29 +0000 (17:17 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/persist_data.py

index 81f0845dda18dfae438436c59e0b21a492eb8f26..baade7c4f14d74994c558f4c56b8dffcb2227a72 100644 (file)
@@ -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"""