bitbake/build.py: Drop exec_shell environment as its now unneeded

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-06-08 20:00:29 +01:00
parent fe967227dd
commit bdab8e9354
1 changed files with 1 additions and 6 deletions

View File

@ -232,11 +232,6 @@ def exec_func_shell(function, d, runfile, cwd=None):
os.chmod(runfile, 0775)
env = {
'PATH': d.getVar('PATH', True),
'LC_ALL': 'C',
}
cmd = runfile
if logger.isEnabledFor(logging.DEBUG):
@ -245,7 +240,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
logfile = sys.stdout
try:
bb.process.run(cmd, env=env, shell=False, stdin=NULL, log=logfile)
bb.process.run(cmd, shell=False, stdin=NULL, log=logfile)
except bb.process.CmdError:
logfn = d.getVar('BB_LOGFILE', True)
raise FuncFailed(function, logfn)