diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-22 15:51:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-22 15:54:29 +0100 |
commit | cd477b5e77ab0373248b8a8fa30e1c7b8ea984fd (patch) | |
tree | ff8422a85c1352d372b08e8749d5c7fddd0ed173 /bin/bitbake-worker | |
parent | a2ca038dd1d0be4e0a0b20ae16a467d5a0075514 (diff) | |
download | bitbake-contrib-cd477b5e77ab0373248b8a8fa30e1c7b8ea984fd.tar.gz |
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
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake-worker')
-rwxr-xr-x | bin/bitbake-worker | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index b2935f6ec..dde2c9c8f 100755 --- a/bin/bitbake-worker +++ b/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: |