Skip to contentSkip to conversation

bitbake-worker: Fix bitbake -n

PATCH New Richard Purdie 1 participant 1 message Sep 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/bin/bitbake-worker +3 -2
index b2935f6..dde2c9c 100755
@@ -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: