summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-04-02 13:35:09 +0100
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2019-05-23 15:49:10 +0100
commit2caabb6ff5ff86d67b5716b60b9e357f1cc0d465 (patch)
tree5dbf89a7b29c4bb976a2222e98240d59747bf38f
parent4973332a7bfad81ca77a0399c7b7f2145f50622d (diff)
downloadbuildstream-2caabb6ff5ff86d67b5716b60b9e357f1cc0d465.tar.gz
WIP: pickle: Element, Source _meta_kind
-rw-r--r--src/buildstream/element.py1
-rw-r--r--src/buildstream/source.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 70158f778..bc82f5141 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -187,6 +187,7 @@ class Element(Plugin):
"""
def __init__(self, context, project, meta, plugin_conf):
+ self._meta_kind = meta.kind
self.__cache_key_dict = None # Dict for cache key calculation
self.__cache_key = None # Our cached cache key
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index fe94a15d7..be9b48359 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -302,6 +302,8 @@ class Source(Plugin):
super().__init__("{}-{}".format(meta.element_name, meta.element_index),
context, project, provenance, "source", unique_id=unique_id)
+ self._meta_kind = meta.kind
+
self.__source_cache = context.sourcecache
self.__element_name = meta.element_name # The name of the element owning this source