diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-04-29 17:36:52 +0100 |
---|---|---|
committer | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2019-04-29 17:36:52 +0100 |
commit | 14c292112975bd0e890886f4b3466feaf3fc7823 (patch) | |
tree | 371d0bfd6461965a58a73cbe3c415dedb840fdd8 /buildstream/plugins/sources/patch.py | |
parent | 73ef730ed9096c6ec418176f3d903d2483262b6b (diff) | |
download | buildstream-raoul/892-individual-source-caching.tar.gz |
Add BST_REQUIRES_PREVIOUS_SOURCE_STAGE optionraoul/892-individual-source-caching
This is an element option that allows sources to be staged more
seperately where possible rather than on a per element option. When
there is a source that has this option set to true, all previously
listed sources will be cached with this, and sources listed afterwards
will be cached individually. If no sources have this option, all sources
will be cached seperately.
Fixes #892
Diffstat (limited to 'buildstream/plugins/sources/patch.py')
-rw-r--r-- | buildstream/plugins/sources/patch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/patch.py b/buildstream/plugins/sources/patch.py index 8e833b411..6da1ea034 100644 --- a/buildstream/plugins/sources/patch.py +++ b/buildstream/plugins/sources/patch.py @@ -52,6 +52,8 @@ from buildstream import utils class PatchSource(Source): # pylint: disable=attribute-defined-outside-init + BST_REQUIRES_PREVIOUS_SOURCES_CACHE = True + def configure(self, node): self.path = self.node_get_project_path(node, 'path', check_is_file=True) |