This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch jonathan/mirror-client-sourcedownloader-tidy in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 7c69e4918503522c678623dc30b99cfa1cf5c9b1 Author: Jonathan Maw <[email protected]> AuthorDate: Fri Jun 22 17:40:40 2018 +0100 local.py: Update to handle SourceDownloaders and alias overrides --- buildstream/plugins/sources/local.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildstream/plugins/sources/local.py b/buildstream/plugins/sources/local.py index 673add1..3ac25d6 100644 --- a/buildstream/plugins/sources/local.py +++ b/buildstream/plugins/sources/local.py @@ -88,7 +88,7 @@ class LocalSource(Source): def set_ref(self, ref, node): pass # pragma: nocover - def fetch(self): + def fetch(self, alias_override=None): # Nothing to do here for a local source pass # pragma: nocover @@ -103,6 +103,10 @@ class LocalSource(Source): destfile = os.path.join(directory, os.path.basename(self.path)) utils.safe_copy(self.fullpath, destfile) + def get_alias(self): + # Local sources do not need mirrors + return None # pragma: nocover + # Create a unique key for a file def unique_key(filename):
