summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-02-25 17:09:32 +0100
committerJürg Billeter <j@bitron.ch>2018-11-27 12:11:24 +0000
commitdf60258a5b84b4a1e33fa66ff1ef887ee120b2e7 (patch)
treee02bee42f54e78ec4042132ef856f8413d2f24c6
parentd09a18b8522a528f7035302f97b3692fd5c8cddc (diff)
downloadbuildstream-df60258a5b84b4a1e33fa66ff1ef887ee120b2e7.tar.gz
source.py: Add optional _get_local_path() method
-rw-r--r--buildstream/source.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index f346fdf83..d6681b963 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -616,6 +616,23 @@ class Source(Plugin):
yield tempdir
#############################################################
+ # Private Abstract Methods used in BuildStream #
+ #############################################################
+
+ # Returns the local path to the source
+ #
+ # If the source is locally available, this method returns the absolute
+ # path. Otherwise, the return value is None.
+ #
+ # This is an optimization for local sources and optional to implement.
+ #
+ # Returns:
+ # (str): The local absolute path, or None
+ #
+ def _get_local_path(self):
+ return None
+
+ #############################################################
# Private Methods used in BuildStream #
#############################################################