diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-03-08 16:57:10 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-03-08 16:57:10 +0900 |
commit | 7a25137fc6a4036b8181b36a95ac3ffada13ffac (patch) | |
tree | 236a979817ada58cf0ca68ce09b0319d0fe469dd | |
parent | ea34b8c5b4c0bcfc945dbb8a31d9f65dd00f3fec (diff) | |
download | buildstream-tristan/bschubert-pipeline.tar.gz |
element.py: Only store the direct reverse dependencies on an element.tristan/bschubert-pipeline
Ensures that `Element.__update_state_recursively()` works as intended
and only updates the states on reverse dependencies when a source cache
key has changed, stop descending into reverse dependencies as soon as
a cache key is unchanged.
-rw-r--r-- | buildstream/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 2e86cabb1..4ad5a6266 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -978,7 +978,7 @@ class Element(Plugin): dependency = Element._new_from_meta(meta_dep) element.__build_dependencies.append(dependency) - for build_dep in element.dependencies(scope=Scope.BUILD): + for build_dep in element.dependencies(Scope.ALL, recurse=False): build_dep.__reverse_dependencies.append(element) return element |