summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:07:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:35:09 +0100
commit638d366234fad78f283d3a13a12b07cb0ccbe914 (patch)
treed83546da91aa4e643dd6ad0f9cf388d1cf3b44fd /lib/bb/server/process.py
parent9dc7f384db0479569ff93a76a623d5395fecaf47 (diff)
downloadbitbake-contrib-638d366234fad78f283d3a13a12b07cb0ccbe914.tar.gz
bitbake-contrib-638d366234fad78f283d3a13a12b07cb0ccbe914.tar.bz2
bitbake-contrib-638d366234fad78f283d3a13a12b07cb0ccbe914.zip
cooker: Change to consistent prefile/postfile handling
Currently the original prefile and postfile passed when starting bitbake server are 'sticky'. With the new memory resident model this doesn't make sense as the server the system is started with isn't special. This patch changes the code so the prefile/postfile are used if specified on the commandline and not used otherwise. This makes the behaviour much more predictable and expected and as an added bonus simplifies the code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index fad8aac4da..5c7dfaefa1 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -405,12 +405,6 @@ class BitBakeServer(object):
server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
self.configuration.setServerRegIdleCallback(server.register_idle_function)
- # Copy prefile and postfile to _server variants
- for param in ('prefile', 'postfile'):
- value = getattr(self.configuration, param)
- if value:
- setattr(self.configuration, "%s_server" % param, value)
-
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset, self.readypipein)
server.cooker = self.cooker
server.server_timeout = self.configuration.server_timeout