diff options
author | Abderrahim Kitouni <akitouni@gnome.org> | 2020-07-17 11:46:36 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2020-07-30 10:22:53 +0000 |
commit | eaf6f692869a3b3e0a92defdf604e662d6f770e7 (patch) | |
tree | 18d47a6ef8f77984d2460dab1cc135a16f05b465 /buildstream/_context.py | |
parent | 6706d3c64c9cef1f7ee43978aa84f484c55cea1e (diff) | |
download | buildstream-eaf6f692869a3b3e0a92defdf604e662d6f770e7.tar.gz |
Split up artifact cache and CAS cache
This changes CASCache from a subclass to a delegate object of
ArtifactCache. As the lower layer, CASCache no longer deals with
elements or projects.
Based on 626d20aefb52d25d987c61f377cc1ce3172da8c3
Fixes #659.
Diffstat (limited to 'buildstream/_context.py')
-rw-r--r-- | buildstream/_context.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py index f36bfd343..8ee45f787 100644 --- a/buildstream/_context.py +++ b/buildstream/_context.py @@ -30,7 +30,6 @@ from ._exceptions import LoadError, LoadErrorReason, BstError from ._message import Message, MessageType from ._profile import Topics, profile_start, profile_end from ._artifactcache import ArtifactCache, ArtifactCacheUsage -from ._artifactcache.cascache import CASCache from ._workspaces import Workspaces from .plugin import Plugin @@ -246,7 +245,7 @@ class Context(): @property def artifactcache(self): if not self._artifactcache: - self._artifactcache = CASCache(self) + self._artifactcache = ArtifactCache(self) return self._artifactcache |