diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-26 10:00:25 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-04-14 16:25:19 +0900 |
commit | 2eba3edc13d1299d1550918bda95e06037e740f7 (patch) | |
tree | 7b57716bb391ba39f2b7daf25856b517602d7207 | |
parent | a777e9a934583edc9182db2720cabcd7123d9b1b (diff) | |
download | buildstream-2eba3edc13d1299d1550918bda95e06037e740f7.tar.gz |
_loader: Migrate to Context.artifactcache
-rw-r--r-- | buildstream/_loader/loader.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py index eec60b193..1d7476776 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 @@ -533,8 +532,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() for source in element.sources(): |