You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:39:40 UTC
[buildstream] 14/18: local.py: Update to handle SourceDownloaders
and alias overrides
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 <jo...@codethink.co.uk>
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):