mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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:
@@ -232,11 +232,6 @@ def exec_func_shell(function, d, runfile, cwd=None):
|
|||||||
|
|
||||||
os.chmod(runfile, 0775)
|
os.chmod(runfile, 0775)
|
||||||
|
|
||||||
env = {
|
|
||||||
'PATH': d.getVar('PATH', True),
|
|
||||||
'LC_ALL': 'C',
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd = runfile
|
cmd = runfile
|
||||||
|
|
||||||
if logger.isEnabledFor(logging.DEBUG):
|
if logger.isEnabledFor(logging.DEBUG):
|
||||||
@@ -245,7 +240,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
|
|||||||
logfile = sys.stdout
|
logfile = sys.stdout
|
||||||
|
|
||||||
try:
|
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:
|
except bb.process.CmdError:
|
||||||
logfn = d.getVar('BB_LOGFILE', True)
|
logfn = d.getVar('BB_LOGFILE', True)
|
||||||
raise FuncFailed(function, logfn)
|
raise FuncFailed(function, logfn)
|
||||||
|
|||||||
Reference in New Issue
Block a user