summaryrefslogtreecommitdiff
path: root/buildstream/_sourcefactory.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-14 21:35:35 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-15 19:46:58 +0900
commiteaad10d4dcab511887c0f765a1f690489a484f19 (patch)
tree6fc6059cb62a1453866c5d5eaf70ea68c036e97c /buildstream/_sourcefactory.py
parentfb7388a8e191f48d0feacd6e689e8eb9189901cd (diff)
downloadbuildstream-eaad10d4dcab511887c0f765a1f690489a484f19.tar.gz
_sourcefactory.py: Updated with real Source constructor arguments
Diffstat (limited to 'buildstream/_sourcefactory.py')
-rw-r--r--buildstream/_sourcefactory.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/buildstream/_sourcefactory.py b/buildstream/_sourcefactory.py
index 6fb5bd9c8..78fb7ec5f 100644
--- a/buildstream/_sourcefactory.py
+++ b/buildstream/_sourcefactory.py
@@ -46,12 +46,18 @@ class SourceFactory(PluginContext):
# objects on demand for a given pipeline.
#
# Args:
- # kind (str): The kind of Source to create
+ # kind (str): The kind of Source to create
+ # context (object): The Context object for processing
+ # project (object): The project object
+ # meta (object): The loaded MetaSource
#
- # Returns: A newly created Source object of the appropriate kind
+ # Returns:
+ # A newly created Source object of the appropriate kind
#
- # Raises: PluginError
+ # Raises:
+ # PluginError (if the kind lookup failed)
+ # LoadError (if the source itself took issue with the config)
#
- def create(self, kind):
+ def create(self, kind, context, project, meta):
source_type = self.lookup(kind)
- return source_type()
+ return source_type(context, project, meta)