summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-02-12 16:14:30 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-02-13 15:39:37 +0000
commit4e50b8850f13bef14ec31710c31801330e41cc32 (patch)
treec220bece8112fb14d399857150820b0c6060a483 /morphlib/buildcommand.py
parentf6c767a64edd2634f1d513e15ce7bb5cfe62dfd9 (diff)
downloadmorph-4e50b8850f13bef14ec31710c31801330e41cc32.tar.gz
Allow omitting repo and ref when referring to strata
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index 6485f510..137c63b4 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -228,8 +228,8 @@ class BuildCommand(object):
def _validate_cross_refs_for_xxx(self, src, srcpool, specs, wanted):
for spec in specs:
- repo_name = spec['repo'] or src.repo_name
- ref = spec['ref'] or src.original_ref
+ repo_name = spec.get('repo') or src.repo_name
+ ref = spec.get('ref') or src.original_ref
filename = '%s.morph' % spec['morph']
logging.debug(
'Validating cross ref to %s:%s:%s' %