Chandan Singh pushed to branch chandan/sourcetransform at BuildStream / buildstream
Commits:
-
4da146c0
by Chandan Singh at 2018-07-30T09:45:30Z
1 changed file:
Changes:
... | ... | @@ -506,14 +506,14 @@ class Loader(): |
506 | 506 |
element = Element._new_from_meta(meta_element, platform.artifactcache)
|
507 | 507 |
element._preflight()
|
508 | 508 |
|
509 |
- for source in element.sources():
|
|
509 |
+ for idx, source in enumerate(element.sources()):
|
|
510 | 510 |
# Handle the case where a subproject needs to be fetched
|
511 | 511 |
#
|
512 | 512 |
if source.get_consistency() == Consistency.RESOLVED:
|
513 | 513 |
if self._fetch_subprojects:
|
514 | 514 |
if ticker:
|
515 | 515 |
ticker(filename, 'Fetching subproject from {} source'.format(source.get_kind()))
|
516 |
- source._fetch()
|
|
516 |
+ source._fetch(element.sources()[0:idx])
|
|
517 | 517 |
else:
|
518 | 518 |
detail = "Try fetching the project with `bst fetch {}`".format(filename)
|
519 | 519 |
raise LoadError(LoadErrorReason.SUBPROJECT_FETCH_NEEDED,
|