mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02: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:
@@ -92,10 +92,10 @@ class PersistData:
|
|||||||
"""
|
"""
|
||||||
self._execute("DELETE from %s where key=?;" % domain, [key])
|
self._execute("DELETE from %s where key=?;" % domain, [key])
|
||||||
|
|
||||||
def _execute(self, **query):
|
def _execute(self, *query):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
self.connection.execute(query)
|
self.connection.execute(*query)
|
||||||
return
|
return
|
||||||
except sqlite3.OperationalError, e:
|
except sqlite3.OperationalError, e:
|
||||||
if 'database is locked' in str(e):
|
if 'database is locked' in str(e):
|
||||||
|
|||||||
Reference in New Issue
Block a user