diff options
author | Christopher Larson <kergoth@gmail.com> | 2012-02-16 16:46:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-22 20:25:29 +0000 |
commit | f7c0488bd5c52094b744ec89bfe27e7dfd541a6f (patch) | |
tree | f1773a8e67c1952193f00fd4d2c0db678e268163 /bitbake | |
parent | 52ebd5ff1bc78b4d1e1b58011751e0658d6c2895 (diff) | |
download | poky-f7c0488bd5c52094b744ec89bfe27e7dfd541a6f.tar.gz |
persist_data: survive if sqlite3 couldn't enable the shared cache
(Bitbake rev: e870fd57bb84a17a871a5b5de3bf5202fe9b135f)
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): | |||
41 | 41 | ||
42 | logger = logging.getLogger("BitBake.PersistData") | 42 | logger = logging.getLogger("BitBake.PersistData") |
43 | if hasattr(sqlite3, 'enable_shared_cache'): | 43 | if hasattr(sqlite3, 'enable_shared_cache'): |
44 | sqlite3.enable_shared_cache(True) | 44 | try: |
45 | sqlite3.enable_shared_cache(True) | ||
46 | except sqlite3.OperationalError: | ||
47 | pass | ||
45 | 48 | ||
46 | 49 | ||
47 | @total_ordering | 50 | @total_ordering |