diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-06-18 11:49:00 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-07-11 11:25:26 +0200 |
commit | b7ab32fe907ebc1cab6b0ef9809a2c90df92f7cb (patch) | |
tree | 35810a26cdf52ca223b77491ca72258c42208093 | |
parent | 199f080fac88fac1277541baec9def1c13afd048 (diff) | |
download | buildstream-b7ab32fe907ebc1cab6b0ef9809a2c90df92f7cb.tar.gz |
element.py: Add scope to _set_artifact_files_required
Part of #1043
-rw-r--r-- | src/buildstream/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 758a0b97d..ccb373f1f 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1529,7 +1529,7 @@ class Element(Plugin): # Mark artifact files for this element and its runtime dependencies as # required in the local cache. # - def _set_artifact_files_required(self): + def _set_artifact_files_required(self, scope=Scope.RUN): if self.__artifact_files_required: # Already done return @@ -1537,8 +1537,8 @@ class Element(Plugin): self.__artifact_files_required = True # Request artifact files of runtime dependencies - for dep in self.dependencies(Scope.RUN, recurse=False): - dep._set_artifact_files_required() + for dep in self.dependencies(scope, recurse=False): + dep._set_artifact_files_required(scope=scope) # _artifact_files_required(): # |