summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-06-30 11:31:00 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-06-30 11:31:00 +0000
commit86b10c080c123a043fee11e62a62b9a8ff31be35 (patch)
treefc5c6b2883bf0bd02179713e6b83ad0a6eded6d0
parent44e6c7b0f1a7edc7e0b4c79121632ef61fb1dd53 (diff)
downloadmorph-86b10c080c123a043fee11e62a62b9a8ff31be35.tar.gz
Set useful defaults in morphloader
-rw-r--r--morphlib/morphloader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/morphloader.py b/morphlib/morphloader.py
index 6776c655..e1447044 100644
--- a/morphlib/morphloader.py
+++ b/morphlib/morphloader.py
@@ -707,6 +707,12 @@ class MorphologyLoader(object):
spec['repo'] = spec['name']
if 'morph' not in spec:
spec['morph'] = spec['name']
+ if 'build-depends' not in spec:
+ spec['build-depends'] = []
+ if 'build-mode' not in spec:
+ spec['build-mode'] = 'staging'
+ if 'prefix' not in spec:
+ spec['prefix'] = '/usr'
self._set_stratum_specs_defaults(morph, 'build-depends')
def _unset_stratum_defaults(self, morph):