From 88cd61ea10bff44191ebfd44e3b5cc22495ad102 Mon Sep 17 00:00:00 2001 From: knownexus Date: Tue, 31 Jul 2018 12:14:21 +0100 Subject: Added the missing `_get_build_log` function --- buildstream/element.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'buildstream/element.py') diff --git a/buildstream/element.py b/buildstream/element.py index dd2e60546..4260d32a5 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -232,6 +232,7 @@ class Element(Plugin): self.__required = False # Whether the artifact is required in the current session self.__artifact_size = None # The size of data committed to the artifact cache self.__build_result = None # The result of assembling this Element + self._build_log_path = None # The path of the build log for this Element # hash tables of loaded artifact metadata, hashed by key self.__metadata_keys = {} # Strong and weak keys for this key @@ -1581,8 +1582,9 @@ class Element(Plugin): # Copy build log log_filename = context.get_log_filename() + self._build_log_path = os.path.join(logsdir, 'build.log') if log_filename: - shutil.copyfile(log_filename, os.path.join(logsdir, 'build.log')) + shutil.copyfile(log_filename, self._build_log_path) # Store public data _yaml.dump(_yaml.node_sanitize(self.__dynamic_public), os.path.join(metadir, 'public.yaml')) @@ -1633,6 +1635,9 @@ class Element(Plugin): # Finally cleanup the build dir cleanup_rootdir() + def _get_build_log(self): + return self._build_log_path + # _pull_pending() # # Check whether the artifact will be pulled. -- cgit v1.2.1