diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-02-12 16:14:30 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-02-13 15:39:37 +0000 |
commit | 4e50b8850f13bef14ec31710c31801330e41cc32 (patch) | |
tree | c220bece8112fb14d399857150820b0c6060a483 /morphlib/app.py | |
parent | f6c767a64edd2634f1d513e15ce7bb5cfe62dfd9 (diff) | |
download | morph-4e50b8850f13bef14ec31710c31801330e41cc32.tar.gz |
Allow omitting repo and ref when referring to strata
Diffstat (limited to 'morphlib/app.py')
-rw-r--r-- | morphlib/app.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index aecee42b..7fb71c7b 100644 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -1,4 +1,4 @@ -# Copyright (C) 2011-2013 Codethink Limited +# Copyright (C) 2011-2014 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -346,14 +346,14 @@ class Morph(cliapp.Application): visit(reponame, ref, filename, absref, tree, morphology) if morphology['kind'] == 'system': - queue.extend((s['repo'] or reponame, - s['ref'] or ref, + queue.extend((s.get('repo') or reponame, + s.get('ref') or ref, '%s.morph' % s['morph']) for s in morphology['strata']) elif morphology['kind'] == 'stratum': if morphology['build-depends']: - queue.extend((s['repo'] or reponame, - s['ref'] or ref, + queue.extend((s.get('repo') or reponame, + s.get('ref') or ref, '%s.morph' % s['morph']) for s in morphology['build-depends']) queue.extend((c['repo'], c['ref'], '%s.morph' % c['morph']) |