summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 10:52:39 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-18 13:34:25 +0100
commitad31f7608febab04157e015a90f5047a6f0d8d83 (patch)
tree0ac0885cd6e77783a0251ed67ad03f3834679d00 /morph
parent48732135d4536880e5459e3064cce9cfa63d6abe (diff)
downloadmorph-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-xmorph3
1 files changed, 2 insertions, 1 deletions
diff --git a/morph b/morph
index a5d9f4e0..44c85b34 100755
--- a/morph
+++ b/morph
@@ -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