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 12:28:40 +0100
commit07c846369697b5217659f180bad8ed379b17441c (patch)
treeeee67429f45cb5c81db8ea91eb82b3147ac8005f
parent8333af2f37ba928d62f17dca22079dfb50eb948d (diff)
downloadbuildstream-07c846369697b5217659f180bad8ed379b17441c.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 608c6e8c0..3431af39d 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