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:
parent
ce4ba3c2b7
commit
6883189d5f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue