]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: deploy-target: fix deploying to previously deployed machine
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 8 Mar 2015 12:34:01 +0000 (12:34 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Mar 2015 11:03:10 +0000 (11:03 +0000)
* Pass correct arguments to undeploy() function
* If an error occurs during undeploy(), exit instead of continuing

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/deploy.py

index bd23e95dd9fe30bb6084e352c984a839a6ce55cc..896b618e8044685195bbba909c74fdc6cb637f10 100644 (file)
@@ -44,7 +44,9 @@ def deploy(args, config, basepath, workspace):
     deploy_file = os.path.join(deploy_dir, args.recipename + '.list')
 
     if os.path.exists(deploy_file):
-        undeploy(args)
+        if undeploy(args, config, basepath, workspace):
+            # Error already shown
+            return -1
 
     stdout, stderr = exec_build_env_command(config.init_path, basepath, 'bitbake -e %s' % args.recipename, shell=True)
     recipe_outdir = re.search(r'^D="(.*)"', stdout, re.MULTILINE).group(1)