This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch aevri/picklable_jobs
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 2caabb6ff5ff86d67b5716b60b9e357f1cc0d465
Author: Angelos Evripiotis <[email protected]>
AuthorDate: Tue Apr 2 13:35:09 2019 +0100

    WIP: pickle: Element, Source _meta_kind
---
 src/buildstream/element.py | 1 +
 src/buildstream/source.py  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 70158f7..bc82f51 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 fe94a15..be9b483 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

Reply via email to