[Notes] [Git][BuildStream/buildstream][master] 2 commits: _artifactcache: Fix crash in push_directory() without artifact server



Title: GitLab

Jürg Billeter pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_artifactcache/cascache.py
    ... ... @@ -365,7 +365,10 @@ class CASCache(ArtifactCache):
    365 365
             Raises: ArtifactError if no push remotes are configured.
    
    366 366
             """
    
    367 367
     
    
    368
    -        push_remotes = [r for r in self._remotes[project] if r.spec.push]
    
    368
    +        if self._has_push_remotes:
    
    369
    +            push_remotes = [r for r in self._remotes[project] if r.spec.push]
    
    370
    +        else:
    
    371
    +            push_remotes = []
    
    369 372
     
    
    370 373
             if not push_remotes:
    
    371 374
                 raise ArtifactError("CASCache: push_directory was called, but no remote artifact " +
    



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