From d79ea3978718aba1d4e3585de873b4a661428d07 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 7 Mar 2014 14:31:54 +0000 Subject: Patch buildcommand once, rather that once per system --- morphlib/plugins/deploy_plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index c1f26e46..71ca5a2c 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -261,6 +261,11 @@ class DeployPlugin(cliapp.Plugin): ''' + # Nasty hack to allow deploying things of a different architecture + def validate(self, root_artifact): + pass + morphlib.buildcommand.BuildCommand._validate_architecture = validate + if not args: raise cliapp.AppException( 'Too few arguments to deploy command (see help)') @@ -338,9 +343,6 @@ class DeployPlugin(cliapp.Plugin): morph = system['morph'] srcpool = build_command.create_source_pool(build_repo, ref, morph + '.morph') - def validate(self, root_artifact): - pass - morphlib.buildcommand.BuildCommand._validate_architecture = validate artifact = build_command.resolve_artifacts(srcpool) -- cgit v1.2.1