diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-06-11 15:57:28 +0200 |
---|---|---|
committer | Valentin David <valentin.david@codethink.co.uk> | 2018-08-02 16:17:01 +0200 |
commit | 483b0223bccad8c4c843d445f6621eefe2000744 (patch) | |
tree | 268b53c18bb7446b7ee05b21672639ca4d63603a /buildstream/_stream.py | |
parent | 3bae4aebf7e95c04ea688469b77f8954848c02d5 (diff) | |
download | buildstream-483b0223bccad8c4c843d445f6621eefe2000744.tar.gz |
Make Project owner of Loader.
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r-- | buildstream/_stream.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py index ad4e1066c..f33d5224c 100644 --- a/buildstream/_stream.py +++ b/buildstream/_stream.py @@ -45,6 +45,7 @@ from . import Scope, Consistency # context (Context): The Context object # project (Project): The Project object # session_start (datetime): The time when the session started +# loader (Loader): The Loader object # session_start_callback (callable): A callback to invoke when the session starts # interrupt_callback (callable): A callback to invoke when we get interrupted # ticker_callback (callable): Invoked every second while running the scheduler @@ -53,7 +54,7 @@ from . import Scope, Consistency # class Stream(): - def __init__(self, context, project, session_start, *, + def __init__(self, context, project, session_start, loader, *, session_start_callback=None, interrupt_callback=None, ticker_callback=None, @@ -71,7 +72,6 @@ class Stream(): # # Private members # - Platform.create_instance(context, project) self._platform = Platform.get_platform() self._artifacts = self._platform.artifactcache self._context = context @@ -90,8 +90,8 @@ class Stream(): # Cleans up application state # def cleanup(self): - if self._pipeline: - self._pipeline.cleanup() + if self._project: + self._project.cleanup() # load_selection() # |