summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 19:00:29 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 19:38:28 (GMT)
commitbdab8e93543bfc0d7b07c61da043b410036ac2c7 (patch)
treedb474ffecedf773d7f6b3780e45818efb8e55459 /bitbake
parentfe967227ddee5a93d053b1b0eae144c5869ff388 (diff)
downloadpoky-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')
-rw-r--r--bitbake/lib/bb/build.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 0f04736..7947906 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)