summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-12 16:53:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-13 08:07:00 +0100
commita3448ad15ec811bbf64aaf5d6496356d26516dfa (patch)
tree33f9c65cafb95c446f3347bf70a555a76f7cba47 /bitbake/lib/bb/cookerdata.py
parent0c91113c077d8efe01a7c9f788c9bdecbc6493bc (diff)
downloadpoky-a3448ad15ec811bbf64aaf5d6496356d26516dfa.tar.gz
bitbake: server/process: Simplfy idle callback handler function
Having the idle callbacks abstracted via the configuration object makes no sense. Its like this for historical reasons from the multiple server backends but we don't need this now so simplfy. (Bitbake rev: e56c49717355c9493b07d5fc80981a95ad8a0ec8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 24bf09c56b..b86e7d446b 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -143,16 +143,10 @@ class CookerConfiguration(object):
143 setattr(self, key, parameters.options.__dict__[key]) 143 setattr(self, key, parameters.options.__dict__[key])
144 self.env = parameters.environment.copy() 144 self.env = parameters.environment.copy()
145 145
146 def setServerRegIdleCallback(self, srcb):
147 self.server_register_idlecallback = srcb
148
149 def __getstate__(self): 146 def __getstate__(self):
150 state = {} 147 state = {}
151 for key in self.__dict__.keys(): 148 for key in self.__dict__.keys():
152 if key == "server_register_idlecallback": 149 state[key] = getattr(self, key)
153 state[key] = None
154 else:
155 state[key] = getattr(self, key)
156 return state 150 return state
157 151
158 def __setstate__(self,state): 152 def __setstate__(self,state):