summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-02-08 10:41:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 22:32:12 +0000
commit1385162cd22d71524e12dc58f48c7d8714d8dc0c (patch)
tree3c5906f41abb92d022fe7faf8f17581f12abe0e3 /bitbake/lib/bb
parent4af31913318318739efc5e10b6dc3a84477458bd (diff)
downloadopenembedded-core-1385162cd22d71524e12dc58f48c7d8714d8dc0c.tar.gz
openembedded-core-1385162cd22d71524e12dc58f48c7d8714d8dc0c.tar.bz2
openembedded-core-1385162cd22d71524e12dc58f48c7d8714d8dc0c.tar.xz
openembedded-core-1385162cd22d71524e12dc58f48c7d8714d8dc0c.zip
persist_data: loop on database lock for table creation
(Bitbake rev: d93fcbd64ab5d806288424170f55323b4297e7d6) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/persist_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index b8c239294..5fe032238 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/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"""