diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-26 14:45:23 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-26 14:47:17 +0900 |
commit | 14aa2590ea20fda8dff8dc9ffd1501654dbdeb19 (patch) | |
tree | cb969fb619c2c397ceb1ae5a3720359295626802 | |
parent | b5c59295786d4989470e7a4fa0988f592716593e (diff) | |
download | buildstream-14aa2590ea20fda8dff8dc9ffd1501654dbdeb19.tar.gz |
plugins/elements/junction.py: Forbid dependencies
Move this logic into the junction element itself, instead
of special case erroring for this in the loader.
-rw-r--r-- | buildstream/plugins/elements/junction.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/junction.py b/buildstream/plugins/elements/junction.py index b3f756380..df7faf3c5 100644 --- a/buildstream/plugins/elements/junction.py +++ b/buildstream/plugins/elements/junction.py @@ -117,6 +117,10 @@ from buildstream._pipeline import PipelineError class JunctionElement(Element): # pylint: disable=attribute-defined-outside-init + # Junctions are not allowed any dependencies + BST_FORBID_BDEPENDS = True + BST_FORBID_RDEPENDS = True + def configure(self, node): self.path = self.node_get_member(node, str, 'path', default='') self.options = self.node_get_member(node, Mapping, 'options', default={}) |