Skip to contentSkip to conversation

cooker: Drop obsolete worker test

PATCH New Richard Purdie 1 participant 1 message Sep 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Drop obsolete worker test

This call only ever happens in cooker context now so we can drop the nasty worker check from here.

---

bitbake/lib/bb/cooker.py +1 -5
index f03f16b..daa00a4 100644
@@ -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):