]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
persist_data: unbork the resurrect of select lock wait
authorChris Larson <chris_larson@mentor.com>
Fri, 24 Dec 2010 02:29:50 +0000 (19:29 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 24 Dec 2010 02:29:50 +0000 (19:29 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/persist_data.py

index 80685332fc1ef2c08e4386eb1df707cdc4c3972b..0ebdf36f498c9714cdbfca82b0e7c5fafe01e6d4 100644 (file)
@@ -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):