]> code.ossystems Code Review - openembedded-core.git/commitdiff
build.py: Start to fix path quoting
authorRichard Purdie <richard@openedhand.com>
Fri, 6 Jul 2007 12:42:16 +0000 (12:42 +0000)
committerRichard Purdie <richard@openedhand.com>
Fri, 6 Jul 2007 12:42:16 +0000 (12:42 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2125 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/ChangeLog
bitbake/lib/bb/build.py

index fbf86c649654daaa50254dd04ebe7c321182cad1..31e2bb49e1e9e095521911bfd49657fcd7deec25 100644 (file)
@@ -2,6 +2,7 @@ Changes in Bitbake 1.8.x:
        - Correctly redirect stdin when forking
        - If parsing errors are found, exit, too many users miss the errors
        - Remove supriours PREFERRED_PROVIDER warnings
+       - Start to fix path quoting
 
 Changes in Bitbake 1.8.4:
        - Make sure __inherit_cache is updated before calling include() (from Michael Krelin)
index bcbc55eea5011e87a900e75b0c2a10607a6522f3..4aaa6b262cb339560fc74529184cdda3be74e9d5 100644 (file)
@@ -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: