summaryrefslogtreecommitdiffstats
path: root/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-23 19:29:50 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-23 19:29:50 -0700
commitc58ffedd14d2a29c4e521c92ccbf4c34b956dc1c (patch)
tree5827caf8ac5479f1f1ba5f70f69ec43b934bae1c /lib/bb/persist_data.py
parentb0a3cc0eacbf537a8c5f020c456fa08f6ca7c1e4 (diff)
downloadbitbake-contrib-c58ffedd14d2a29c4e521c92ccbf4c34b956dc1c.tar.gz
persist_data: unbork the resurrect of select lock wait
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r--lib/bb/persist_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index 80685332f..0ebdf36f4 100644
--- a/lib/bb/persist_data.py
+++ b/lib/bb/persist_data.py
@@ -54,7 +54,7 @@ class SQLTable(collections.MutableMapping):
"""Execute a query, waiting to acquire a lock if necessary"""
while True:
try:
- self.cursor.execute(*query)
+ return self.cursor.execute(*query)
break
except sqlite3.OperationalError as exc:
if 'database is locked' in str(exc):