diff options
author | Richard Purdie <richard@openedhand.com> | 2007-07-06 12:42:16 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-07-06 12:42:16 +0000 |
commit | 119b1d5b090153bee61d96f1c0c371ed04a53cfa (patch) | |
tree | 0bce9837da2cbdd7256b915726c14defa99275eb /bitbake | |
parent | a291023c50d85c82553fffc7c33019d529201954 (diff) | |
download | poky-119b1d5b090153bee61d96f1c0c371ed04a53cfa.tar.gz |
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')
-rw-r--r-- | bitbake/ChangeLog | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/ChangeLog b/bitbake/ChangeLog index fbf86c6496..31e2bb49e1 100644 --- a/bitbake/ChangeLog +++ b/bitbake/ChangeLog | |||
@@ -2,6 +2,7 @@ Changes in Bitbake 1.8.x: | |||
2 | - Correctly redirect stdin when forking | 2 | - Correctly redirect stdin when forking |
3 | - If parsing errors are found, exit, too many users miss the errors | 3 | - If parsing errors are found, exit, too many users miss the errors |
4 | - Remove supriours PREFERRED_PROVIDER warnings | 4 | - Remove supriours PREFERRED_PROVIDER warnings |
5 | - Start to fix path quoting | ||
5 | 6 | ||
6 | Changes in Bitbake 1.8.4: | 7 | Changes in Bitbake 1.8.4: |
7 | - Make sure __inherit_cache is updated before calling include() (from Michael Krelin) | 8 | - Make sure __inherit_cache is updated before calling include() (from Michael Krelin) |
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): | |||
150 | if bb.msg.debug_level['default'] > 0: f.write("set -x\n") | 150 | if bb.msg.debug_level['default'] > 0: f.write("set -x\n") |
151 | data.emit_env(f, d) | 151 | data.emit_env(f, d) |
152 | 152 | ||
153 | f.write("cd %s\n" % os.getcwd()) | 153 | f.write("cd '%s'\n" % os.getcwd()) |
154 | if func: f.write("%s\n" % func) | 154 | if func: f.write("%s\n" % func) |
155 | f.close() | 155 | f.close() |
156 | os.chmod(runfile, 0775) | 156 | os.chmod(runfile, 0775) |
@@ -189,7 +189,7 @@ def exec_func_shell(func, d): | |||
189 | else: | 189 | else: |
190 | maybe_fakeroot = '' | 190 | maybe_fakeroot = '' |
191 | lang_environment = "LC_ALL=C " | 191 | lang_environment = "LC_ALL=C " |
192 | ret = os.system('%s%ssh -e %s' % (lang_environment, maybe_fakeroot, runfile)) | 192 | ret = os.system('%s%ssh -e "%s"' % (lang_environment, maybe_fakeroot, runfile)) |
193 | try: | 193 | try: |
194 | os.chdir(prevdir) | 194 | os.chdir(prevdir) |
195 | except: | 195 | except: |