summaryrefslogtreecommitdiff
path: root/buildstream/source.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-02 17:49:00 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-09-03 15:19:48 +0900
commit4df625c84c8d755631ab818587870e29e5f1e2e9 (patch)
tree2ce502e608990ff1d4ba7692bb10d63f79169c1c /buildstream/source.py
parent62b7ec4595b2dfb67674026c89ed891632680da1 (diff)
downloadbuildstream-4df625c84c8d755631ab818587870e29e5f1e2e9.tar.gz
plugin.py: Added _configure() and _get_configuring() private APIs
Keeps track of whether the plugin is currently being configured. Adjusted Element and Source classes to call _configure() in place of calling configure() directly. This is a part of #620
Diffstat (limited to 'buildstream/source.py')
-rw-r--r--buildstream/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index 15acba732..bec01553b 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -247,7 +247,7 @@ class Source(Plugin):
self.__config = self.__extract_config(meta)
self.__first_pass = meta.first_pass
- self.configure(self.__config)
+ self._configure(self.__config)
COMMON_CONFIG_KEYS = ['kind', 'directory']
"""Common source config keys