You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/08/23 09:33:15 UTC

[buildstream] branch tristan/bst-1/fix-error-from-1725 created (now 0073a5ed9)

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

tvb pushed a change to branch tristan/bst-1/fix-error-from-1725
in repository https://gitbox.apache.org/repos/asf/buildstream.git


      at 0073a5ed9 _artifactcache/cascache.py: Fix logic error introduced in #1725

This branch includes the following new commits:

     new 0073a5ed9 _artifactcache/cascache.py: Fix logic error introduced in #1725

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 01/01: _artifactcache/cascache.py: Fix logic error introduced in #1725

Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/bst-1/fix-error-from-1725
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 0073a5ed9686d1cbe48ed879b0c674c5d96e8268
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Tue Aug 23 18:32:13 2022 +0900

    _artifactcache/cascache.py: Fix logic error introduced in #1725
    
    I made a copy/paste error in my last patch in #1725, this fixes it.
---
 buildstream/_artifactcache/cascache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 0e5134d0f..0799f1d16 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -1157,7 +1157,7 @@ class CASRemote():
                     if e.code() == grpc.StatusCode.INVALID_ARGUMENT:
                         # Expected error as the request doesn't specify any URIs.
                         self.asset_push_supported = True
-                    if (e.code() != grpc.StatusCode.UNIMPLEMENTED and
+                    elif (e.code() != grpc.StatusCode.UNIMPLEMENTED and
                         e.code() != grpc.StatusCode.PERMISSION_DENIED):
                         raise