diff options
author | Christopher Larson <kergoth@gmail.com> | 2012-02-16 16:46:20 -0700 |
---|---|---|
committer | Christopher Larson <kergoth@gmail.com> | 2012-02-16 16:46:20 -0700 |
commit | e870fd57bb84a17a871a5b5de3bf5202fe9b135f (patch) | |
tree | 4cb734b3af04cb5aee430bcd949ef8f6803deed8 /lib/bb/persist_data.py | |
parent | 6bf6213ca43438220239085f7441c85d3f60e308 (diff) | |
download | bitbake-e870fd57bb84a17a871a5b5de3bf5202fe9b135f.tar.gz |
persist_data: survive if sqlite3 couldn't enable the shared cache
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r-- | lib/bb/persist_data.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index c4ea23bfd..c69758dd5 100644 --- a/lib/bb/persist_data.py +++ b/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 |