diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-06-20 11:09:07 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-15 15:21:13 +0000 |
commit | 89dbe2d61e041dc13f8c968b48696dad5d7b7cba (patch) | |
tree | 1cb7707bce20397312a91d614a30479287abd17b /morphlib | |
parent | a8b77e85e29cb5c74220bba866cce9480439abfb (diff) | |
download | morph-89dbe2d61e041dc13f8c968b48696dad5d7b7cba.tar.gz |
Require system-kind to be rootfs-tarball
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/builder2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 5de3366c..7f400049 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -669,6 +669,9 @@ class SystemBuilder(BuilderBase): # pragma: no cover def build_and_cache(self): system_kind = self.artifact.source.morphology['system-kind'] + if system_kind != 'rootfs-tarball': + raise morphlib.Error( + 'System kind %s not support (only rootfs-tarball is)') builder = self.app.system_kind_builder_factory.new( system_kind, self.args, self.kwargs) logging.debug('Building system with %s' % repr(builder)) |