diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-04-02 11:52:24 +0100 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-05-23 15:49:09 +0100 |
commit | 8bd512f3f8e7638958246719e0a2bf3961458ada (patch) | |
tree | 9b48bdd1010c3130229564eb6cdff3eeb9f0cdbc | |
parent | 5997c2a6c72c6b98c52fe8bf4460c7c0126a5049 (diff) | |
download | buildstream-8bd512f3f8e7638958246719e0a2bf3961458ada.tar.gz |
WIP: pickle: Context: no _message_handler
-rw-r--r-- | src/buildstream/_context.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py index fc758d459..9aa6295a7 100644 --- a/src/buildstream/_context.py +++ b/src/buildstream/_context.py @@ -169,6 +169,19 @@ class Context(): self._casquota = None self._directory = directory + def __getstate__(self): + state = self.__dict__.copy() + + # Looks we can construct these if they're missing. + # Note that we'll need figure out what to do with 'required elements', + # hopefully nothing. + # state['_artifactcache'] = None + # state['_sourcecache'] = None + + del state['_message_handler'] + + return state + # load() # # Loads the configuration files |