summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2019-04-04 14:04:09 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2019-04-04 14:04:09 +0100
commit987548a4e439950ac7b6d68adbf1342f783a398a (patch)
tree7ddadcdd19f9a0bc9f80b46b6f83adc5ebd8be71 /buildstream/element.py
parent1edb56ae015cca0e24e6555898b0e2de83bdd62f (diff)
downloadbuildstream-danielsilverstone-ct/reenable-key-in-node.tar.gz
_yaml.py: Remove node_containsdanielsilverstone-ct/reenable-key-in-node
Now that we permit `key in somenode` remove the no longer needed function to check if a node contains a key. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 2bb492cb3..5c28b4753 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -753,7 +753,7 @@ class Element(Plugin):
if workspace and old_dep_keys:
dep.__assert_cached()
- if _yaml.node_contains(old_dep_keys, dep.name):
+ if dep.name in old_dep_keys:
key_new = dep._get_cache_key()
key_old = _yaml.node_get(old_dep_keys, str, dep.name)