[Notes] [Git][BuildStream/buildstream][master] 2 commits: _yaml.py: Do not insert into cache if retrieved from cache



Title: GitLab

Jonathan Maw pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_yaml.py
    ... ... @@ -204,9 +204,8 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
    204 204
     
    
    205 205
             if not data:
    
    206 206
                 data = load_data(contents, file, copy_tree=copy_tree)
    
    207
    -
    
    208
    -        if yaml_cache:
    
    209
    -            yaml_cache.put_from_key(project, filename, key, data)
    
    207
    +            if yaml_cache:
    
    208
    +                yaml_cache.put_from_key(project, filename, key, data)
    
    210 209
     
    
    211 210
             return data
    
    212 211
         except FileNotFoundError as e:
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]