diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-06-22 17:40:40 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-06-26 17:50:36 +0100 |
commit | a2c02c87f982ebc8dcd1702613297acf624bc683 (patch) | |
tree | 0044b3269b36dacdd8a8143e43b9dd13cfe1822b | |
parent | 069a500da4a9de37e64fe648c2db536d0f30e437 (diff) | |
download | buildstream-a2c02c87f982ebc8dcd1702613297acf624bc683.tar.gz |
local.py: Update to handle SourceDownloaders and alias overrides
-rw-r--r-- | buildstream/plugins/sources/local.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/plugins/sources/local.py b/buildstream/plugins/sources/local.py index e3b019f1a..53ddf7a64 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): |