diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-04-12 16:37:28 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-07-27 12:24:56 +0000 |
commit | 2889003cb2667f88628204fac655a06def8f136b (patch) | |
tree | df981dc494c27d758537add1ef789cb58ff32aa6 /buildstream/_loader | |
parent | 7c993ac043409cafac6f9cdcaf02dc08c062dcdc (diff) | |
download | buildstream-2889003cb2667f88628204fac655a06def8f136b.tar.gz |
source: When fetching, try to fetch from mirrors first
**KLUDGE WARNING**: This involves making the source store its "meta"
object so that it's possible to create a copy of the source inside the
fetch queue, instead of back when the pipeline was being loaded.
This adds the SourceFetcher class, which is intended for sources that
fetch from multiple URLs (e.g. the git source and its submodules)
Fix when fetching
Diffstat (limited to 'buildstream/_loader')
-rw-r--r-- | buildstream/_loader/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py index 07b0de996..e9b9d95f1 100644 --- a/buildstream/_loader/loader.py +++ b/buildstream/_loader/loader.py @@ -513,7 +513,7 @@ class Loader(): if self._fetch_subprojects: if ticker: ticker(filename, 'Fetching subproject from {} source'.format(source.get_kind())) - source.fetch() + source._fetch() else: detail = "Try fetching the project with `bst fetch {}`".format(filename) raise LoadError(LoadErrorReason.SUBPROJECT_FETCH_NEEDED, |