summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-07-06 12:42:16 +0000
committerRichard Purdie <richard@openedhand.com>2007-07-06 12:42:16 +0000
commit119b1d5b090153bee61d96f1c0c371ed04a53cfa (patch)
tree0bce9837da2cbdd7256b915726c14defa99275eb /bitbake/lib
parenta291023c50d85c82553fffc7c33019d529201954 (diff)
downloadopenembedded-core-119b1d5b090153bee61d96f1c0c371ed04a53cfa.tar.gz
openembedded-core-119b1d5b090153bee61d96f1c0c371ed04a53cfa.tar.bz2
openembedded-core-119b1d5b090153bee61d96f1c0c371ed04a53cfa.zip
build.py: Start to fix path quoting
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2125 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index bcbc55eea5..4aaa6b262c 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -150,7 +150,7 @@ def exec_func_shell(func, d):
if bb.msg.debug_level['default'] > 0: f.write("set -x\n")
data.emit_env(f, d)
- f.write("cd %s\n" % os.getcwd())
+ f.write("cd '%s'\n" % os.getcwd())
if func: f.write("%s\n" % func)
f.close()
os.chmod(runfile, 0775)
@@ -189,7 +189,7 @@ def exec_func_shell(func, d):
else:
maybe_fakeroot = ''
lang_environment = "LC_ALL=C "
- ret = os.system('%s%ssh -e %s' % (lang_environment, maybe_fakeroot, runfile))
+ ret = os.system('%s%ssh -e "%s"' % (lang_environment, maybe_fakeroot, runfile))
try:
os.chdir(prevdir)
except: