From afdbe3112b940987f3f3cddcb32c91a5e17a297d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 22 Sep 2014 15:51:59 +0100 Subject: bitbake: bitbake-worker: Fix bitbake -n Without this you see: File "bitbake/bin/bitbake-worker", line 201, in fork_off_task os._exit(child()) TypeError: an integer is required (Bitbake rev: cd477b5e77ab0373248b8a8fa30e1c7b8ea984fd) Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-worker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index b2935f6ec0..dde2c9c8fc 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: -- cgit v1.2.3-54-g00ecf