diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-08 10:41:58 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-08 10:41:58 -0700 |
commit | d93fcbd64ab5d806288424170f55323b4297e7d6 (patch) | |
tree | 86848b2d72286d88fa93dce74df6fd3bea02bdfa | |
parent | 16e296b918e3a897153e2c93133bd9dbb6ae17c4 (diff) | |
download | bitbake-d93fcbd64ab5d806288424170f55323b4297e7d6.tar.gz |
persist_data: loop on database lock for table creation
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/persist_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index b8c239294..5fe032238 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -47,8 +47,8 @@ class SQLTable(collections.MutableMapping): self.cursor = cursor self.table = table - cursor.execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, value TEXT);" - % table) + self._execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, value TEXT);" + % table) def _execute(self, *query): """Execute a query, waiting to acquire a lock if necessary""" |