summaryrefslogtreecommitdiff
path: root/buildstream/_loader
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-26 10:00:25 +0100
committerJürg Billeter <j@bitron.ch>2018-09-27 10:18:03 +0100
commita5025c33e34ee1e5a40e0606afa5e255bd9be021 (patch)
tree43f8925fcce20289ef93abc53aad3c518d4617f7 /buildstream/_loader
parent7aec8b0f0b205b83a266c4542163394cd34256f5 (diff)
downloadbuildstream-a5025c33e34ee1e5a40e0606afa5e255bd9be021.tar.gz
_loader: Migrate to Context.artifactcache
Diffstat (limited to 'buildstream/_loader')
-rw-r--r--buildstream/_loader/loader.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py
index 8553bc6dd..1b27d9d55 100644
--- a/buildstream/_loader/loader.py
+++ b/buildstream/_loader/loader.py
@@ -28,7 +28,6 @@ from .. import Consistency
from .. import _yaml
from ..element import Element
from .._profile import Topics, profile_start, profile_end
-from .._platform import Platform
from .._includes import Includes
from .types import Symbol, Dependency
@@ -518,8 +517,7 @@ class Loader():
raise LoadError(LoadErrorReason.INVALID_DATA,
"{}: Expected junction but element kind is {}".format(filename, meta_element.kind))
- platform = Platform.get_platform()
- element = Element._new_from_meta(meta_element, platform.artifactcache)
+ element = Element._new_from_meta(meta_element, self._context.artifactcache)
element._preflight()
sources = list(element.sources())