diff options
Diffstat (limited to 'src/buildstream/plugins/sources/workspace.py')
| -rw-r--r-- | src/buildstream/plugins/sources/workspace.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buildstream/plugins/sources/workspace.py b/src/buildstream/plugins/sources/workspace.py index 5d808e275..c940f7ab1 100644 --- a/src/buildstream/plugins/sources/workspace.py +++ b/src/buildstream/plugins/sources/workspace.py @@ -55,8 +55,6 @@ class WorkspaceSource(Source): self.__unique_key = None # the digest of the Directory following the import of the workspace self.__digest = None - # the CasBasedDirectory which the path is imported into - self.__cas_dir = None def track(self) -> SourceRef: return None @@ -80,7 +78,7 @@ class WorkspaceSource(Source): def get_unique_key(self) -> (str, SourceRef): if self.__digest is None: - self.__cas_dir, self.__digest = self.stage_into_cas(self.path) + self.__digest = self.stage_into_cas(self.path) return (self.path, self.__digest) # init_workspace() @@ -97,7 +95,7 @@ class WorkspaceSource(Source): pass # pragma: nocover def stage(self, directory: Directory) -> None: - self.stage_into_directory(self.__cas_dir, directory) + self.stage_into_directory(self.path, directory) def _get_local_path(self) -> str: return self.path |
