diff options
author | Peter Seebach <peter.seebach@windriver.com> | 2013-11-19 18:31:39 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-20 14:04:47 +0000 |
commit | 2809c2e6f2f35f9b08058950be896947ab5a0284 (patch) | |
tree | 5ce6c9c6d9341e6a149702e23841596620e14e86 /lib | |
parent | f21910157d873c030b149c4cdc5b57c5062ab5a6 (diff) | |
download | bitbake-2809c2e6f2f35f9b08058950be896947ab5a0284.tar.gz |
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.
Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index f9aca42b3..92c45a38c 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -288,7 +288,7 @@ set -e if bb.msg.loggerVerboseLogs: script.write("set -x\n") if cwd: - script.write("cd %s\n" % cwd) + script.write("cd '%s'\n" % cwd) script.write("%s\n" % func) script.write(''' # cleanup |