Skip to content
Snippets Groups Projects
Commit 986d6231 authored by Jürg Billeter's avatar Jürg Billeter
Browse files

source.py: Add optional _get_local_path() method

parent abef70fe
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,23 @@ class Source(Plugin):
with utils._tempdir(dir=mirrordir) as tempdir:
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 #
#############################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment