summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-04 23:58:56 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-04 23:58:56 +0000
commit6883189d5fd46d390540d65d95dd75fcd22522de (patch)
tree46bc39497301c075e95fd18bfce9afca9a760532
parentce4ba3c2b74279a5ec1acc03730cdaa5d94a159f (diff)
downloadpoky-6883189d5fd46d390540d65d95dd75fcd22522de.tar.gz
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
-rw-r--r--bitbake/lib/bb/persist_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index 0f31b4c845..0b88dadba5 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -92,10 +92,10 @@ class PersistData:
92 """ 92 """
93 self._execute("DELETE from %s where key=?;" % domain, [key]) 93 self._execute("DELETE from %s where key=?;" % domain, [key])
94 94
95 def _execute(self, **query): 95 def _execute(self, *query):
96 while True: 96 while True:
97 try: 97 try:
98 self.connection.execute(query) 98 self.connection.execute(*query)
99 return 99 return
100 except sqlite3.OperationalError, e: 100 except sqlite3.OperationalError, e:
101 if 'database is locked' in str(e): 101 if 'database is locked' in str(e):