From 88dbb0523cfdc46c8f7e4484ce57c3f46fd475a1 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 16 Mar 2011 08:07:29 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/build.py') diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 83a378febb..194a28b38c 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -224,7 +224,8 @@ def exec_func_shell(function, d, runfile, cwd=None): if cwd: script.write("cd %s\n" % cwd) script.write("%s\n" % function) - os.fchmod(script.fileno(), 0775) + + os.chmod(runfile, 0775) env = { 'PATH': d.getVar('PATH', True), -- cgit v1.2.3-54-g00ecf