summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2020-01-15 17:37:54 +0000
committerTom Pollard <tom.pollard@codethink.co.uk>2020-01-15 17:37:54 +0000
commit28ec1c9ef848cb20cc5722deedec59b4017c8a0f (patch)
treec2b794af12a7b92379c45caa5dd1c0e2b0e7a4dc
parent862743917b1e0e15d56b56b53ccfb013671c74e2 (diff)
parentf2fd8c9ad98143953459725cd4e83ffd043f243d (diff)
downloadbuildstream-28ec1c9ef848cb20cc5722deedec59b4017c8a0f.tar.gz
Merge branch 'tpollard/removeassert' into 'master'
element.py: Remove unused __staged_sources_directory & assert Closes #1249 See merge request BuildStream/buildstream!1798
-rw-r--r--src/buildstream/element.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index ee6b90ce7..595724fcf 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -265,8 +265,6 @@ class Element(Plugin):
self.__source_cached = None # If the sources are known to be successfully cached
self.__splits = None # Resolved regex objects for computing split domains
self.__whitelist_regex = None # Resolved regex object to check if file is allowed to overlap
- # Location where Element.stage_sources() was called
- self.__staged_sources_directory = None # type: Optional[str]
self.__tainted = None # Whether the artifact is tainted and should not be shared
self.__artifact_files_required = False # Whether artifact files are required in the local cache
self.__build_result = None # The result of assembling this Element (success, description, detail)
@@ -872,14 +870,6 @@ class Element(Plugin):
sandbox: The build sandbox
directory: An absolute path within the sandbox to stage the sources at
"""
-
- # Hold on to the location where a plugin decided to stage sources,
- # this will be used to reconstruct the failed sysroot properly
- # after a failed build.
- #
- assert self.__staged_sources_directory is None
- self.__staged_sources_directory = directory
-
self._stage_sources_in_sandbox(sandbox, directory)
def get_public_data(self, domain: str) -> "MappingNode[Any, Any]":