* [PATCH] bitbake-worker: Fix bitbake -n
@ 2014-09-22 14:51 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-09-22 14:51 UTC (permalink / raw)
To: bitbake-devel
Without this you see:
File "bitbake/bin/bitbake-worker", line 201, in fork_off_task
os._exit(child())
TypeError: an integer is required
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index b2935f6..dde2c9c 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -193,8 +193,9 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, taskdepdat
logger.critical(str(exc))
os._exit(1)
try:
- if not cfg.dry_run:
- return bb.build.exec_task(fn, taskname, the_data, cfg.profile)
+ if cfg.dry_run:
+ return 0
+ return bb.build.exec_task(fn, taskname, the_data, cfg.profile)
except:
os._exit(1)
if not profiling:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-22 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 14:51 [PATCH] bitbake-worker: Fix bitbake -n Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox