summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-22 10:38:29 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-22 10:54:29 +0000
commitf3aa715cf5e9ba09c44f2c1aa2c99ecd51d2a168 (patch)
treed12ecd0501934128a882dd1e0213f5fe5fb29cb9 /morphlib/buildcommand.py
parentcd50ad396208af9bb5fe65945c0771673645ecca (diff)
downloadmorph-f3aa715cf5e9ba09c44f2c1aa2c99ecd51d2a168.tar.gz
Allow building strata with 'morph build-morphology' again
This is mainly to fix bootstrap.
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index e27581d2..f857171e 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -82,7 +82,7 @@ class BuildCommand(object):
self.lrc, self.rrc, (repo_name, ref, filename))
root_kind = srcpool.lookup(repo_name, ref, filename).morphology['kind']
- if root_kind != 'system':
+ if root_kind not in ['system', 'stratum']:
raise morphlib.Error(
'Building a %s directly is not supported' % root_kind)