diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2019-04-04 14:04:09 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2019-04-04 14:04:09 +0100 |
commit | 987548a4e439950ac7b6d68adbf1342f783a398a (patch) | |
tree | 7ddadcdd19f9a0bc9f80b46b6f83adc5ebd8be71 /buildstream/element.py | |
parent | 1edb56ae015cca0e24e6555898b0e2de83bdd62f (diff) | |
download | buildstream-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.py | 2 |
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) |