summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2013-11-19 18:31:39 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-20 14:05:52 +0000
commit10717e5a0a2918b04af04c7dca31efacd4ae8b7c (patch)
tree12150e8fc3398163f9f4fac19e2830f83e80bbd6
parent852ba6c72f2555def6896fd768e1a4dea37606aa (diff)
downloadpoky-10717e5a0a2918b04af04c7dca31efacd4ae8b7c.tar.gz
bitbake: build.py: add single-quotes around already-expanded directory name
If the computed name of a directory contains an undefined variable reference, bitbake dutifully creates a directory with a name that has ${...} in it. However, the actual task script created then tries to cd to that directory, and the cd command fails, because no such directory exists -- because the shell has helpfully removed the ${...} which did not match any actual variables. Since we want the name to be used exactly-as-is, add single quotes around the name so this doesn't cause strange failures running tasks, which allows us to progress past such failures and get to a point where they can be diagnosed. (Bitbake rev: 2809c2e6f2f35f9b08058950be896947ab5a0284) Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f9aca42b37..92c45a38c9 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -288,7 +288,7 @@ set -e
288 if bb.msg.loggerVerboseLogs: 288 if bb.msg.loggerVerboseLogs:
289 script.write("set -x\n") 289 script.write("set -x\n")
290 if cwd: 290 if cwd:
291 script.write("cd %s\n" % cwd) 291 script.write("cd '%s'\n" % cwd)
292 script.write("%s\n" % func) 292 script.write("%s\n" % func)
293 script.write(''' 293 script.write('''
294# cleanup 294# cleanup