Patchwork [bitbake-devel] cooker: Drop obsolete worker test

login
register
mail settings
Submitter Richard Purdie
Date Sept. 13, 2013, 4:30 p.m.
Message ID <1379089818.3484.271.camel@ted>
Download mbox | patch
Permalink /patch/57975/
State New
Headers show

Comments

Richard Purdie - Sept. 13, 2013, 4:30 p.m.
This call only ever happens in cooker context now so we can drop the
nasty worker check from here.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f03f16b..daa00a4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -141,11 +141,7 @@  class BBCooker:
         self.parser = None
 
     def initConfigurationData(self):
-        worker = False
-        if not self.configuration.server_register_idlecallback:
-            worker = True
-
-        self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration, worker)
+        self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration, False)
         self.data = self.databuilder.data
 
     def enableDataTracking(self):