summaryrefslogtreecommitdiffstats
path: root/lib/bb/persist_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r--lib/bb/persist_data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index bd60fca7c..38ad35490 100644
--- a/lib/bb/persist_data.py
+++ b/lib/bb/persist_data.py
@@ -39,7 +39,8 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3):
logger = logging.getLogger("BitBake.PersistData")
-sqlite3.enable_shared_cache(True)
+if hasattr(sqlite3, 'enable_shared_cache'):
+ sqlite3.enable_shared_cache(True)
class SQLTable(collections.MutableMapping):