diff options
author | Jürg Billeter <j@bitron.ch> | 2020-10-28 09:19:05 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-12-09 14:51:06 +0000 |
commit | c836b7be6feaa0b9f86ab8c0cb5b913b0d8ed0e0 (patch) | |
tree | e4c7679ded79f80c478a13a7a878ef00a772efe4 /src/buildstream/sandbox | |
parent | a501b0e60f15779be0abb7b074dd6e4944b1a23a (diff) | |
download | buildstream-c836b7be6feaa0b9f86ab8c0cb5b913b0d8ed0e0.tar.gz |
Use CASCache.open()juerg/cas
Diffstat (limited to 'src/buildstream/sandbox')
-rw-r--r-- | src/buildstream/sandbox/_sandboxremote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/sandbox/_sandboxremote.py b/src/buildstream/sandbox/_sandboxremote.py index 3302b0dad..ff314adba 100644 --- a/src/buildstream/sandbox/_sandboxremote.py +++ b/src/buildstream/sandbox/_sandboxremote.py @@ -380,13 +380,13 @@ class SandboxRemote(SandboxREAPI): # Forward remote stdout and stderr if stdout: if action_result.stdout_digest.hash: - with open(cascache.objpath(action_result.stdout_digest), "r") as f: + with cascache.open(action_result.stdout_digest, "r") as f: shutil.copyfileobj(f, stdout) elif action_result.stdout_raw: stdout.write(str(action_result.stdout_raw, "utf-8", errors="ignore")) if stderr: if action_result.stderr_digest.hash: - with open(cascache.objpath(action_result.stderr_digest), "r") as f: + with cascache.open(action_result.stderr_digest, "r") as f: shutil.copyfileobj(f, stderr) elif action_result.stderr_raw: stderr.write(str(action_result.stderr_raw, "utf-8", errors="ignore")) |