diff options
author | Jürg Billeter <j@bitron.ch> | 2019-08-06 15:28:04 +0200 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-08-19 12:27:53 +0100 |
commit | d28420ba60df8949882fcf39cc00bc27c0647f06 (patch) | |
tree | b73e907d9ee174780444b4908f869353d3124f49 | |
parent | 9797ae6314043816bfc83789aa88651e37820eb3 (diff) | |
download | buildstream-d28420ba60df8949882fcf39cc00bc27c0647f06.tar.gz |
_context.py: Call CASCache.cleanup() in __exit__()
This will be used to terminate the buildbox-casd child process.
-rw-r--r-- | src/buildstream/_context.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py index f9bac4c54..40b35c21b 100644 --- a/src/buildstream/_context.py +++ b/src/buildstream/_context.py @@ -180,7 +180,8 @@ class Context(): # Called when exiting the with-statement context. # def __exit__(self, exc_type, exc_value, traceback): - return None + if self._cascache: + self._cascache.cleanup() # load() # |