diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 10:52:39 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 13:34:25 +0100 |
commit | ad31f7608febab04157e015a90f5047a6f0d8d83 (patch) | |
tree | 0ac0885cd6e77783a0251ed67ad03f3834679d00 /morph | |
parent | 48732135d4536880e5459e3064cce9cfa63d6abe (diff) | |
download | morph-ad31f7608febab04157e015a90f5047a6f0d8d83.tar.gz |
Add a repo_name to Source, use that instead of repo in most places.
This is because we will need to integrate a RemoteRepoCache and we don't
always want to create a CachedRepo object (in fact, we only want that
for the sources of artifacts we actually need to build). So we'll use
either the local or the remote repo cache to resolve refs and morphology
texts and then later, when actually caching a repo, we'll set the
source.repo member to a CachedRepo object that we can then use to
unpack the sources.
Diffstat (limited to 'morph')
-rwxr-xr-x | morph | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -166,8 +166,9 @@ class Morph(cliapp.Application): for x in morphology['sources']: queue.append((x['repo'], x['ref'], '%s.morph' % x['morph'])) - source = morphlib.source.Source(repo, ref, absref, + source = morphlib.source.Source(reponame, ref, absref, morphology, filename) + source.repo = repo pool.add(source) return pool |