summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-25 16:53:50 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-26 11:20:31 +0000
commit6a216934edb2423c9aa347329ea029041927a413 (patch)
tree770aa37c3104f3396dbad2336dcdb5c5b6d9ee6f /morphlib/app.py
parent3d93d272079b602aefe5d3bcd660d4a3307f3aad (diff)
downloadmorph-6a216934edb2423c9aa347329ea029041927a413.tar.gz
Allow building with null repo/ref
Diffstat (limited to 'morphlib/app.py')
-rw-r--r--morphlib/app.py8
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'])