You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:36:21 UTC

[buildstream] 03/05: add comments to element.py

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch jennis/add_yaml_roundtrip_module
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 547d212c1d3bae5ef9d0e08b71091fe971a447cd
Author: James Ennis <ja...@codethink.co.uk>
AuthorDate: Thu Mar 7 13:55:49 2019 +0000

    add comments to element.py
---
 buildstream/element.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/buildstream/element.py b/buildstream/element.py
index 191cc73..07745db 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2745,6 +2745,7 @@ class Element(Plugin):
 
         # Parse the expensive yaml now and cache the result
         meta_file = artifact_vdir._objpath(['meta', 'keys.yaml'])
+        ## NOTE: Doesn't need to use _yaml.load() here, we don't need prov...?
         meta = _yaml.load(meta_file, shortname='meta/keys.yaml')
         strong_key = meta['strong']
         weak_key = meta['weak']
@@ -2776,6 +2777,7 @@ class Element(Plugin):
 
         # Parse the expensive yaml now and cache the result
         meta_file = artifact_vdir._objpath(['meta', 'dependencies.yaml'])
+        ## NOTE: Doesn't look like this needs to be carrying around provenance either
         meta = _yaml.load(meta_file, shortname='meta/dependencies.yaml')
 
         # Cache it under both strong and weak keys
@@ -2805,6 +2807,7 @@ class Element(Plugin):
 
         # Parse the expensive yaml now and cache the result
         meta_file = artifact_vdir._objpath(['meta', 'workspaced.yaml'])
+        ## NOTE: Doesn't look like this needs prov either
         meta = _yaml.load(meta_file, shortname='meta/workspaced.yaml')
         workspaced = meta['workspaced']
 
@@ -2835,6 +2838,7 @@ class Element(Plugin):
 
         # Parse the expensive yaml now and cache the result
         meta_file = artifact_vdir._objpath(['meta', 'workspaced-dependencies.yaml'])
+        ## NOTE: Doesn't look like this needs provenance either
         meta = _yaml.load(meta_file, shortname='meta/workspaced-dependencies.yaml')
         workspaced = meta['workspaced-dependencies']