summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-06-12 13:51:36 +0200
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-06-22 21:17:40 -0400
commit10d21ff040e8916a82741fd5527e0d29393c46d2 (patch)
tree887853c66ca6d6e0420f09354a555a7927181bb1
parent4f1d5a1c00821e39a198a66b070f15b6cccb0aee (diff)
downloadbuildstream-10d21ff040e8916a82741fd5527e0d29393c46d2.tar.gz
Fix element check for BST_FORBID_BDEPENDS
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 6fb826165..fc21f80b6 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1155,7 +1155,7 @@ class Element(Plugin):
def _preflight(self):
if self.BST_FORBID_RDEPENDS and self.BST_FORBID_BDEPENDS:
- if any(self.dependencies(Scope.RUN, recurse=False)) or any(self.dependencies(Scope.RUN, recurse=False)):
+ if any(self.dependencies(Scope.RUN, recurse=False)) or any(self.dependencies(Scope.BUILD, recurse=False)):
raise ElementError("{}: Dependencies are forbidden for '{}' elements"
.format(self, self.get_kind()), reason="element-forbidden-depends")