summaryrefslogtreecommitdiff
path: root/buildstream/_context.py
diff options
context:
space:
mode:
authorAbderrahim Kitouni <akitouni@gnome.org>2020-07-17 11:46:36 +0100
committerJavier Jardón <jjardon@gnome.org>2020-07-30 10:22:53 +0000
commiteaf6f692869a3b3e0a92defdf604e662d6f770e7 (patch)
tree18d47a6ef8f77984d2460dab1cc135a16f05b465 /buildstream/_context.py
parent6706d3c64c9cef1f7ee43978aa84f484c55cea1e (diff)
downloadbuildstream-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.py3
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