summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbderrahim Kitouni <a.kitouni@gmail.com>2018-02-07 10:35:55 +0100
committerJürg Billeter <j@bitron.ch>2018-02-07 10:41:38 +0100
commitca042895a9575210a5c65eed80159229977fe872 (patch)
tree700ec97ccfb94a336b063502e13698bd583f365f
parent34a60189be63dc86d333ca895ce44bd24adb43c3 (diff)
downloadbuildstream-ca042895a9575210a5c65eed80159229977fe872.tar.gz
element.py: Fix staging of runtime dependencies with overlaps
This fixes `bst shell` crashes in the presence of overlaps. Fixes #225 Fixes: 2aa233da ("element: Handle overlaps with a whitelist and...")
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index afcfcee95..a582d6912 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -482,7 +482,7 @@ class Element(Plugin):
# The bottom item overlaps nothing
overlapping_elements = elements[1:]
for elm in overlapping_elements:
- element = self.search(Scope.BUILD, elm)
+ element = self.search(scope, elm)
element_project = element._get_project()
if not element.__file_is_whitelisted(f):
forbidden_overlap = True