summaryrefslogtreecommitdiff
path: root/buildstream/scriptelement.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 19:29:30 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 19:29:30 -0400
commit3ab23dbd4f01369727b3a7410c26f2f97ed7a340 (patch)
treef8483a2b6c851ea44df5fce85aa30bef8e3e86c4 /buildstream/scriptelement.py
parent2b0ba33947b920d0a91bf8391a2b00ec73d60096 (diff)
downloadbuildstream-3ab23dbd4f01369727b3a7410c26f2f97ed7a340.tar.gz
element.py and plugins: Changed Element.strict_rebuild API
Instead use BST_STRICT_REBUILD and follow a new pattern we're using for any class attributes used for the plugin to communicate static data back to the core.
Diffstat (limited to 'buildstream/scriptelement.py')
-rw-r--r--buildstream/scriptelement.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/scriptelement.py b/buildstream/scriptelement.py
index 0bd8c0f7a..d84ca9157 100644
--- a/buildstream/scriptelement.py
+++ b/buildstream/scriptelement.py
@@ -43,7 +43,11 @@ class ScriptElement(Element):
__commands = None
__layout = []
- strict_rebuild = True
+ # The compose element's output is it's dependencies, so
+ # we must rebuild if the dependencies change even when
+ # not in strict build plans.
+ #
+ BST_STRICT_REBUILD = True
def set_work_dir(self, work_dir=None):
"""Sets the working dir