diff options
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/source.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index 118f5841e..f610e90af 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -135,9 +135,10 @@ class Source(Plugin): Yields: (str): A path to a temporary directory - This should be used by source plugins directly instead of the - tempfile module, as it will take care of cleaning up the temporary - directory in the case of forced termination. + This should be used by source plugins directly instead of the tempfile + module. This one will automatically cleanup in case of termination by + catching the signal before os._exit(). It will also use the 'mirror + directory' as expected for a source. """ mirrordir = self.get_mirror_directory() with utils._tempdir(dir=mirrordir) as tempdir: |