This is an automated email from the ASF dual-hosted git repository. not-in-ldap pushed a commit to branch jonathan/mirror-client-sourcedownloader in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit a2c02c87f982ebc8dcd1702613297acf624bc683 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 e3b019f..53ddf7a 100644 --- a/buildstream/plugins/sources/local.py +++ b/buildstream/plugins/sources/local.py @@ -87,7 +87,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 @@ -102,6 +102,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):
