summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-worker
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-xbitbake/bin/bitbake-worker3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 66b6aabfdb..ff20c1ca98 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -97,7 +97,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, quieterror
97 except TypeError: 97 except TypeError:
98 umask = taskdep['umask'][taskname] 98 umask = taskdep['umask'][taskname]
99 99
100 if 'fakeroot' in taskdep and taskname in taskdep['fakeroot']: 100 # We can't use the fakeroot environment in a dry run as it possibly hasn't been built
101 if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not cfg.dry_run:
101 envvars = (workerdata["fakerootenv"][fn] or "").split() 102 envvars = (workerdata["fakerootenv"][fn] or "").split()
102 for key, value in (var.split('=') for var in envvars): 103 for key, value in (var.split('=') for var in envvars):
103 envbackup[key] = os.environ.get(key) 104 envbackup[key] = os.environ.get(key)