diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-09-25 16:53:50 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-09-26 11:20:31 +0000 |
commit | 6a216934edb2423c9aa347329ea029041927a413 (patch) | |
tree | 770aa37c3104f3396dbad2336dcdb5c5b6d9ee6f /morphlib/app.py | |
parent | 3d93d272079b602aefe5d3bcd660d4a3307f3aad (diff) | |
download | morph-6a216934edb2423c9aa347329ea029041927a413.tar.gz |
Allow building with null repo/ref
Diffstat (limited to 'morphlib/app.py')
-rw-r--r-- | morphlib/app.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index 08b020ff..a0833d45 100644 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -318,11 +318,15 @@ class Morph(cliapp.Application): visit(reponame, ref, filename, absref, tree, morphology) if morphology['kind'] == 'system': - queue.extend((s['repo'], s['ref'], '%s.morph' % s['morph']) + queue.extend((s['repo'] or reponame, + s['ref'] or ref, + '%s.morph' % s['morph']) for s in morphology['strata']) elif morphology['kind'] == 'stratum': if morphology['build-depends']: - queue.extend((s['repo'], s['ref'], '%s.morph' % s['morph']) + queue.extend((s['repo'] or reponame, + s['ref'] or ref, + '%s.morph' % s['morph']) for s in morphology['build-depends']) queue.extend((c['repo'], c['ref'], '%s.morph' % c['morph']) for c in morphology['chunks']) |