]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqueue: Fix missing fakeworker under dry run
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 May 2016 13:15:26 +0000 (14:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 May 2016 16:32:13 +0000 (17:32 +0100)
We shouldn't try and use fakeworker when performing a dry_run. This
makes the core match the other fakeworker execution points.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/runqueue.py

index 1c60d97c7feb95a5d719e205c9fe19bfd59c2df5..8b3fe5a957c91a545555b862782010bc8719724f 100644 (file)
@@ -2069,7 +2069,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
             bb.event.fire(startevent, self.cfgData)
 
             taskdep = self.rqdata.dataCache.task_deps[fn]
-            if 'fakeroot' in taskdep and taskname in taskdep['fakeroot']:
+            if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run:
                 if not self.rq.fakeworker:
                     self.rq.start_fakeworker(self)
                 self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, realtask, taskname, True, self.cooker.collection.get_file_appends(fn), None)) + "</runtask>")