summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/persist_data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-16 08:07:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-06 15:42:03 +0100
commit88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 (patch)
tree6d713979334869df56ee14acdb39ca742b9d2798 /bitbake/lib/bb/persist_data.py
parent628bd54d936650d03ba2ffd0a08aade2f84529b1 (diff)
downloadpoky-88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1.tar.gz
Initial work on getting bitbake working under pypy
- use os.chmod, not os.fchmod, as the latter is missing under pypy - rearrange our imports a bit - don't die if sqlite3 is missing shared cache support (Bitbake rev: f229824dc9c453adf6067500e2bf6761536e4f2f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
-rw-r--r--bitbake/lib/bb/persist_data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index da05752311..f51a42efd2 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/lib/bb/persist_data.py
@@ -39,6 +39,8 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3):
39 39
40 40
41logger = logging.getLogger("BitBake.PersistData") 41logger = logging.getLogger("BitBake.PersistData")
42if hasattr(sqlite3, 'enable_shared_cache'):
43 sqlite3.enable_shared_cache(True)
42 44
43 45
44class SQLTable(collections.MutableMapping): 46class SQLTable(collections.MutableMapping):