diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-20 13:57:31 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-20 14:09:18 +0000 |
commit | d5b0d37ad9343b8d66fe99648d305a41199d3920 (patch) | |
tree | db3966aca61264e2ef2635bace6c4667bbd21abb /morphlib/source.py | |
parent | a75e5121478e2a645c65d276cc20f3eb659222f4 (diff) | |
download | morph-d5b0d37ad9343b8d66fe99648d305a41199d3920.tar.gz |
WIP Add support for multiple sources per chunkbaserock/tiagogomes/multiple-sources
TODO:
- Add API to the cache server to retrieve a submodule commit from a
given path.
- Fix cross-bootstrap command.
Change-Id: I3475c2bcb648a272fee33bc878a521f79d4e6581
Diffstat (limited to 'morphlib/source.py')
-rw-r--r-- | morphlib/source.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/source.py b/morphlib/source.py index 135c14cc..e7486b56 100644 --- a/morphlib/source.py +++ b/morphlib/source.py @@ -78,7 +78,7 @@ class Source(object): def make_sources(reponame, ref, filename, absref, tree, morphology, - default_split_rules={}): + default_split_rules={}, subtrees=[]): kind = morphology['kind'] if kind in ('system', 'chunk'): unifier = getattr(morphlib.artifactsplitrule, @@ -92,6 +92,7 @@ def make_sources(reponame, ref, filename, absref, tree, morphology, filename, split_rules) source.artifacts = {name: morphlib.artifact.Artifact(source, name) for name in split_rules.artifacts} + source.subtrees = subtrees yield source elif kind == 'stratum': # pragma: no cover unifier = morphlib.artifactsplitrule.unify_stratum_matches |