summaryrefslogtreecommitdiff
path: root/src/buildstream/_element.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_element.pyx')
-rw-r--r--src/buildstream/_element.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/_element.pyx b/src/buildstream/_element.pyx
index 004398f09..862705562 100644
--- a/src/buildstream/_element.pyx
+++ b/src/buildstream/_element.pyx
@@ -32,6 +32,8 @@ cdef visit_all(object element, object visited, list acc):
if dep._unique_id not in visited[0] and dep._unique_id not in visited[1]:
visit_all(dep, visited, acc)
+ acc.append(element)
+
cdef visit_build(object element, object visited, list acc):
visited[0].add(element._unique_id)