>From 255e7ecc17fa28b7eeb1e102dc42ca4747f8ab68 Mon Sep 17 00:00:00 2001
From: Graham Gower <[email protected]>
Date: Mon, 13 Dec 2010 13:51:26 +1030
Subject: [PATCH] build: Change working directory for shell functions.

This was broken by 53740977521bc81ffa37adfa7bbeb8f2a80ea165.

Signed-off-by: Graham Gower <[email protected]>
---
 lib/bb/build.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/bb/build.py b/lib/bb/build.py
index 2a0c2b6..b44ebf0 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -240,6 +240,8 @@ def exec_func_shell(function, d, runfile, logfile, 
cwd=None, fakeroot=False):
             script.write("set -x\n")
         data.emit_env(script, d)
 
+        if cwd:
+            script.write("cd %s\n" % cwd);
         script.write("%s\n" % function)
         os.fchmod(script.fileno(), 0775)
 
-- 
1.7.1

_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to