aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/oe/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/oe/build.py b/bin/oe/build.py
index a91644f57..d1c2767d1 100644
--- a/bin/oe/build.py
+++ b/bin/oe/build.py
@@ -199,7 +199,7 @@ def exec_func_shell(func, d):
# execute function
prevdir = os.getcwd()
if data.getVarFlag(func, "fakeroot", d):
- maybe_fakeroot = oe.data.expand("${STAGING_BINDIR}/fakeroot ",d)
+ maybe_fakeroot = "PATH=\"%s\" fakeroot " % oe.data.getVar("PATH", d, 1)
else:
maybe_fakeroot = ''
ret = os.system('%ssh -e %s' % (maybe_fakeroot, runfile))