summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/patch.py
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-04-29 17:36:52 +0100
committerRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-04-29 17:36:52 +0100
commit14c292112975bd0e890886f4b3466feaf3fc7823 (patch)
tree371d0bfd6461965a58a73cbe3c415dedb840fdd8 /buildstream/plugins/sources/patch.py
parent73ef730ed9096c6ec418176f3d903d2483262b6b (diff)
downloadbuildstream-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.py2
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)