summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/runqueue.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 84b268580f..c305631a96 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -997,8 +997,9 @@ class RunQueue:
997 magic = "decafbadbad" 997 magic = "decafbadbad"
998 if fakeroot: 998 if fakeroot:
999 magic = magic + "beef" 999 magic = magic + "beef"
1000 fakerootcmd = self.cfgData.getVar("FAKEROOTCMD", True) 1000 mcdata = self.cooker.databuilder.mcdata[mc]
1001 fakerootenv = (self.cfgData.getVar("FAKEROOTBASEENV", True) or "").split() 1001 fakerootcmd = mcdata.getVar("FAKEROOTCMD", True)
1002 fakerootenv = (mcdata.getVar("FAKEROOTBASEENV", True) or "").split()
1002 env = os.environ.copy() 1003 env = os.environ.copy()
1003 for key, value in (var.split('=') for var in fakerootenv): 1004 for key, value in (var.split('=') for var in fakerootenv):
1004 env[key] = value 1005 env[key] = value