summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-worker
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-xbitbake/bin/bitbake-worker10
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 115bc1d091..6a12e1fed2 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -287,10 +287,12 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
287 try: 287 try:
288 if dry_run: 288 if dry_run:
289 return 0 289 return 0
290 ret = bb.build.exec_task(fn, taskname, the_data, cfg.profile) 290 try:
291 if fakeroot: 291 ret = bb.build.exec_task(fn, taskname, the_data, cfg.profile)
292 fakerootcmd = shlex.split(the_data.getVar("FAKEROOTCMD")) 292 finally:
293 subprocess.run(fakerootcmd + ['-S'], check=True, stdout=subprocess.PIPE) 293 if fakeroot:
294 fakerootcmd = shlex.split(the_data.getVar("FAKEROOTCMD"))
295 subprocess.run(fakerootcmd + ['-S'], check=True, stdout=subprocess.PIPE)
294 return ret 296 return ret
295 except: 297 except:
296 os._exit(1) 298 os._exit(1)