diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:00:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:38:28 +0100 |
commit | bdab8e93543bfc0d7b07c61da043b410036ac2c7 (patch) | |
tree | db474ffecedf773d7f6b3780e45818efb8e55459 /bitbake/lib | |
parent | fe967227ddee5a93d053b1b0eae144c5869ff388 (diff) | |
download | poky-bdab8e93543bfc0d7b07c61da043b410036ac2c7.tar.gz |
bitbake/build.py: Drop exec_shell environment as its now unneeded
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 0f047364e4..7947906ab2 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -232,11 +232,6 @@ def exec_func_shell(function, d, runfile, cwd=None): | |||
232 | 232 | ||
233 | os.chmod(runfile, 0775) | 233 | os.chmod(runfile, 0775) |
234 | 234 | ||
235 | env = { | ||
236 | 'PATH': d.getVar('PATH', True), | ||
237 | 'LC_ALL': 'C', | ||
238 | } | ||
239 | |||
240 | cmd = runfile | 235 | cmd = runfile |
241 | 236 | ||
242 | if logger.isEnabledFor(logging.DEBUG): | 237 | if logger.isEnabledFor(logging.DEBUG): |
@@ -245,7 +240,7 @@ def exec_func_shell(function, d, runfile, cwd=None): | |||
245 | logfile = sys.stdout | 240 | logfile = sys.stdout |
246 | 241 | ||
247 | try: | 242 | try: |
248 | bb.process.run(cmd, env=env, shell=False, stdin=NULL, log=logfile) | 243 | bb.process.run(cmd, shell=False, stdin=NULL, log=logfile) |
249 | except bb.process.CmdError: | 244 | except bb.process.CmdError: |
250 | logfn = d.getVar('BB_LOGFILE', True) | 245 | logfn = d.getVar('BB_LOGFILE', True) |
251 | raise FuncFailed(function, logfn) | 246 | raise FuncFailed(function, logfn) |