summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-10-07 18:06:48 +0100
committerDarius Makovsky <traveltissues@protonmail.com>2019-10-11 14:21:25 +0100
commit19269e527fc36f81ba0db9294cc0d06518c7af8e (patch)
treed51aa5ac43e6a90a42ef591f5d831c3b193aacd6
parentbcbd1803151e24f411a11a788441c2da2686bf7a (diff)
downloadbuildstream-19269e527fc36f81ba0db9294cc0d06518c7af8e.tar.gz
workspace.py: raise SourceError on init_workspace
-rw-r--r--src/buildstream/plugins/sources/workspace.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/buildstream/plugins/sources/workspace.py b/src/buildstream/plugins/sources/workspace.py
index 0e7797fe8..f1b9d1d8a 100644
--- a/src/buildstream/plugins/sources/workspace.py
+++ b/src/buildstream/plugins/sources/workspace.py
@@ -109,13 +109,7 @@ class WorkspaceSource(Source):
return (self.path, self.__digest)
def init_workspace(self, directory: Directory) -> None:
- # for each source held by the workspace we must call init_workspace
- # those sources may override `init_workspace` expecting str or Directory
- # and this will need to be extracted from the directory passed to this method
- assert isinstance(directory, Directory)
- directory = directory.external_directory
- for source in self.get_element_sources():
- source._init_workspace(directory)
+ raise SourceError('Attempting to re-open an existing workspace')
def get_consistency(self):
# always return cached state