diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-26 10:18:04 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-27 10:19:12 +0100 |
commit | b8f920e26b43de4a665f1241aed7ee6a9424689e (patch) | |
tree | 6d329757cc37c9396acb55b6bb3beb8ef7f520fa /buildstream/storage | |
parent | 99e90918a4fe5dfac1fe0edbf0e9a3b82b0d8eba (diff) | |
download | buildstream-b8f920e26b43de4a665f1241aed7ee6a9424689e.tar.gz |
storage/_casbaseddirectory.py: Use Context for artifact cache creation
Diffstat (limited to 'buildstream/storage')
-rw-r--r-- | buildstream/storage/_casbaseddirectory.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py index d580635c1..07fd206ed 100644 --- a/buildstream/storage/_casbaseddirectory.py +++ b/buildstream/storage/_casbaseddirectory.py @@ -38,7 +38,6 @@ from .._exceptions import BstError from .directory import Directory, VirtualDirectoryError from ._filebaseddirectory import FileBasedDirectory from ..utils import FileListResult, safe_copy, list_relative_paths -from .._artifactcache.cascache import CASCache class IndexEntry(): @@ -80,7 +79,7 @@ class CasBasedDirectory(Directory): self.filename = filename self.common_name = common_name self.pb2_directory = remote_execution_pb2.Directory() - self.cas_cache = CASCache(context) + self.cas_cache = context.artifactcache if ref: with open(self.cas_cache.objpath(ref), 'rb') as f: self.pb2_directory.ParseFromString(f.read()) |