diff options
author | Jürg Billeter <j@bitron.ch> | 2019-07-24 15:15:18 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-20 07:41:23 +0200 |
commit | be1e235b429ce49e0982398f87848b8cfb4d7be7 (patch) | |
tree | f3b9a03cb02f81f46479424131337c5ddb31a3f6 | |
parent | 4b82baa1a8c89a33f40bd20fbff10af4ec2dbbf2 (diff) | |
download | buildstream-be1e235b429ce49e0982398f87848b8cfb4d7be7.tar.gz |
_stream.py: Remove calls to mark_required_{elements,sources}
This is no longer necessary with buildbox-casd as required blobs will be
protected based on timestamps.
-rw-r--r-- | src/buildstream/_stream.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py index b64091d8f..d81d0d051 100644 --- a/src/buildstream/_stream.py +++ b/src/buildstream/_stream.py @@ -19,8 +19,6 @@ # Jürg Billeter <juerg.billeter@codethink.co.uk> # Tristan Maat <tristan.maat@codethink.co.uk> -import itertools -import functools import os import sys import stat @@ -1242,20 +1240,6 @@ class Stream(): selected, except_elements) - # Set the "required" artifacts that should not be removed - # while this pipeline is active - # - # It must include all the artifacts which are required by the - # final product. Note that this is a superset of the build plan. - # - # use partial as we send this to both Artifact and Source caches - required_elements = functools.partial(self._pipeline.dependencies, elements, Scope.ALL) - self._artifacts.mark_required_elements(required_elements()) - - self._sourcecache.mark_required_sources( - itertools.chain.from_iterable( - [element.sources() for element in required_elements()])) - if selection == PipelineSelection.PLAN and dynamic_plan: # We use a dynamic build plan, only request artifacts of top-level targets, # others are requested dynamically as needed. |