diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-26 18:59:01 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-29 16:55:50 +0000 |
commit | a7f12476d4e7b2025a60be58027b67b9e551f31b (patch) | |
tree | 8a5de760ab7281368d11a25c659780d3aea3539f /morphlib/plugins/build_plugin.py | |
parent | 9404317020ff0455cbfd3ca7976d546af823759b (diff) | |
download | morph-a7f12476d4e7b2025a60be58027b67b9e551f31b.tar.gz |
Add support for definitions version 8
This code is a rework from changes done by:
- Tiago Gomes <tiago.gomes@codethink.co.uk>
https://storyboard.baserock.org/#!/story/86
Change-Id: I3475c2bcb648a272fee33bc878a521f79d4e6581
Diffstat (limited to 'morphlib/plugins/build_plugin.py')
-rw-r--r-- | morphlib/plugins/build_plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/plugins/build_plugin.py b/morphlib/plugins/build_plugin.py index 0aab2d51..69848b04 100644 --- a/morphlib/plugins/build_plugin.py +++ b/morphlib/plugins/build_plugin.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2015 Codethink Limited +# Copyright (C) 2012-2016 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -226,6 +226,8 @@ class BuildPlugin(cliapp.Plugin): ''' bc = morphlib.buildcommand.BuildCommand(self.app) bc.validate_sources(source_pool) + bc.source_pool = source_pool + definitions_version = source_pool.definitions_version root = bc.resolve_artifacts(source_pool) if not component_names: component_names = [root.source.name] @@ -234,7 +236,7 @@ class BuildPlugin(cliapp.Plugin): raise ComponentNotInSystemError(not_found, filename) for name, component in components.iteritems(): component.build_env = root.build_env - bc.build_in_order(component) + bc.build_in_order(component, definitions_version) self.app.status(msg='%(kind)s %(name)s is cached at %(path)s', kind=component.source.morphology['kind'], name=name, |