diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-19 17:59:20 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2013-12-20 11:33:11 +0000 |
commit | 654e8e3a00cb12fcae63346319943751e3442aa2 (patch) | |
tree | af2e1485137ec26d57a80bfb030121fb9fe96878 /morphlib/plugins/cross-bootstrap_plugin.py | |
parent | ae0bb5ac1245fe124560fa7dc1f53656da190ac2 (diff) | |
download | morph-654e8e3a00cb12fcae63346319943751e3442aa2.tar.gz |
Deploy and cross-bootstrap commands no longer validate host architecture
Diffstat (limited to 'morphlib/plugins/cross-bootstrap_plugin.py')
-rw-r--r-- | morphlib/plugins/cross-bootstrap_plugin.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/morphlib/plugins/cross-bootstrap_plugin.py b/morphlib/plugins/cross-bootstrap_plugin.py index 72c7924f..ec0cfbcb 100644 --- a/morphlib/plugins/cross-bootstrap_plugin.py +++ b/morphlib/plugins/cross-bootstrap_plugin.py @@ -267,6 +267,19 @@ class CrossBootstrapPlugin(cliapp.Plugin): system_source = srcpool.lookup(root_repo, ref, morph_name) system_source.morphology.builds_artifacts = builds_artifacts + # FIXME: this is a quick fix in order to get it working for + # Baserock 13 release, it is not a reasonable fix + def validate(self, root_artifact): + root_arch = root_artifact.source.morphology['arch'] + target_arch = arch + if root_arch != target_arch: + raise morphlib.Error( + 'Target architecture is %s ' + 'but the system architecture is %s' + % (target_arch, root_arch)) + + morphlib.buildcommand.BuildCommand._validate_architecture = validate + system_artifact = build_command.resolve_artifacts(srcpool) # Calculate build order |