Guest User

Untitled

a guest
Jul 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git i/lib/bb/build.py w/lib/bb/build.py
  2. index 6da5baf..1531c3d 100644
  3. --- i/lib/bb/build.py
  4. +++ w/lib/bb/build.py
  5. @@ -223,6 +223,8 @@ def exec_func_shell(function, d, runfile, logfile, cwd=None, fakeroot=False):
  6. data.emit_func(function, script, d)
  7.  
  8. script.write("set -x\n")
  9. + if cwd:
  10. + script.write("cd %s" % cwd)
  11. script.write("%s\n" % function)
  12. os.fchmod(script.fileno(), 0775)
  13.  
  14. @@ -235,7 +237,7 @@ def exec_func_shell(function, d, runfile, logfile, cwd=None, fakeroot=False):
  15. logfile = LogTee(logger, logfile)
  16.  
  17. try:
  18. - bb.process.run(cmd, cwd=cwd, shell=False, stdin=NULL, log=logfile)
  19. + bb.process.run(cmd, shell=False, stdin=NULL, log=logfile)
  20. except bb.process.CmdError:
  21. raise FuncFailed(function, logfile.name)
Add Comment
Please, Sign In to add comment