diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-07-18 16:10:22 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-07-22 15:55:26 +0100 |
commit | abb93656aa0b8de1e086c8f142bf468d3b50f26e (patch) | |
tree | 984a0f1acc37768f5206f8b3be0c78aec2cfda3e /morphlib/buildcommand.py | |
parent | 11926f251856e48955c986de9653cdfb829d1c0f (diff) | |
download | morph-abb93656aa0b8de1e086c8f142bf468d3b50f26e.tar.gz |
Don't set 'morph' field by default, and don't expect to find it
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r-- | morphlib/buildcommand.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 45c6ef00..4dea7b68 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -231,7 +231,8 @@ class BuildCommand(object): for spec in specs: repo_name = spec.get('repo') or src.repo_name ref = spec.get('ref') or src.original_ref - filename = morphlib.util.sanitise_morphology_path(spec['morph']) + filename = morphlib.util.sanitise_morphology_path( + spec.get('morph', spec.get('name'))) logging.debug( 'Validating cross ref to %s:%s:%s' % (repo_name, ref, filename)) |