1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

bitbake persist_data: Fix for python 2.4

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2366 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-08-04 23:58:56 +00:00
parent ce4ba3c2b7
commit 6883189d5f
+2 -2
View File
@@ -92,10 +92,10 @@ class PersistData:
"""
self._execute("DELETE from %s where key=?;" % domain, [key])
def _execute(self, **query):
def _execute(self, *query):
while True:
try:
self.connection.execute(query)
self.connection.execute(*query)
return
except sqlite3.OperationalError, e:
if 'database is locked' in str(e):