summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-11-03 11:01:24 +0100
committerJürg Billeter <j@bitron.ch>2018-11-05 17:18:12 +0000
commitbfb639bfc1a768cb7e8208d3650d3461e6da7ec4 (patch)
treebc9168047be5483e8489b4e39638b50a4cedd0f4 /buildstream/element.py
parentbe8f0a54764e8190efdf9361f3ca3f7a44dea0e3 (diff)
downloadbuildstream-bfb639bfc1a768cb7e8208d3650d3461e6da7ec4.tar.gz
element.py: Remove artifacts parameter from constructor
Get the artifact cache from the context instead.
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 5de0253c5..3e4aea6b4 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -174,7 +174,7 @@ class Element(Plugin):
*Since: 1.4*
"""
- def __init__(self, context, project, artifacts, meta, plugin_conf):
+ def __init__(self, context, project, meta, plugin_conf):
self.__cache_key_dict = None # Dict for cache key calculation
self.__cache_key = None # Our cached cache key
@@ -199,7 +199,7 @@ class Element(Plugin):
self.__sources = [] # List of Sources
self.__weak_cache_key = None # Our cached weak cache key
self.__strict_cache_key = None # Our cached cache key for strict builds
- self.__artifacts = artifacts # Artifact cache
+ self.__artifacts = context.artifactcache # Artifact cache
self.__consistency = Consistency.INCONSISTENT # Cached overall consistency state
self.__strong_cached = None # Whether we have a cached artifact
self.__weak_cached = None # Whether we have a cached artifact