summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildstream/plugins/sources/local.py6
-rw-r--r--src/buildstream/plugins/sources/workspace.py15
2 files changed, 7 insertions, 14 deletions
diff --git a/src/buildstream/plugins/sources/local.py b/src/buildstream/plugins/sources/local.py
index c39e09417..ffcae4993 100644
--- a/src/buildstream/plugins/sources/local.py
+++ b/src/buildstream/plugins/sources/local.py
@@ -49,11 +49,7 @@ class LocalSource(Source):
BST_STAGE_VIRTUAL_DIRECTORY = True
BST_KEY_REQUIRES_STAGE = True
- def __init__(self, context, project, meta):
- super().__init__(context, project, meta)
-
- # Cached unique key to avoid multiple file system traversal if the unique key is requested multiple times.
- self.__unique_key = None
+ __unique_key = None
def configure(self, node):
node.validate_keys(["path", *Source.COMMON_CONFIG_KEYS])
diff --git a/src/buildstream/plugins/sources/workspace.py b/src/buildstream/plugins/sources/workspace.py
index 796f2b3d9..f1d965fa0 100644
--- a/src/buildstream/plugins/sources/workspace.py
+++ b/src/buildstream/plugins/sources/workspace.py
@@ -51,15 +51,12 @@ class WorkspaceSource(Source):
BST_STAGE_VIRTUAL_DIRECTORY = True
BST_KEY_REQUIRES_STAGE = True
- def __init__(self, context, project, meta) -> None:
- super().__init__(context, project, meta)
-
- # Cached unique key
- self.__unique_key = None
- # the digest of the Directory following the import of the workspace
- self.__digest = None
- # the cache key of the last workspace build
- self.__last_build = None
+ # Cached unique key
+ __unique_key = None
+ # the digest of the Directory following the import of the workspace
+ __digest = None
+ # the cache key of the last workspace build
+ __last_build = None
def track(self) -> SourceRef: # pylint: disable=arguments-differ
return None