Commit 10d21ff0 authored by Valentin David's avatar Valentin David Committed by Tristan Van Berkom

Fix element check for BST_FORBID_BDEPENDS

parent 4f1d5a1c
Pipeline #24411584 passed with stages
in 41 minutes and 47 seconds
......@@ -1155,7 +1155,7 @@ class Element(Plugin):
def _preflight(self):
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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment