From f7c0488bd5c52094b744ec89bfe27e7dfd541a6f Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Thu, 16 Feb 2012 16:46:20 -0700 Subject: persist_data: survive if sqlite3 couldn't enable the shared cache (Bitbake rev: e870fd57bb84a17a871a5b5de3bf5202fe9b135f) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/persist_data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index c4ea23bfda..c69758dd5b 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py @@ -41,7 +41,10 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): logger = logging.getLogger("BitBake.PersistData") if hasattr(sqlite3, 'enable_shared_cache'): - sqlite3.enable_shared_cache(True) + try: + sqlite3.enable_shared_cache(True) + except sqlite3.OperationalError: + pass @total_ordering -- cgit v1.2.3-54-g00ecf