mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
devtool: deploy-target: fix deploying to previously deployed machine
* Pass correct arguments to undeploy() function * If an error occurs during undeploy(), exit instead of continuing (From OE-Core rev: c938dee4b28af7e6296c86347dfa533f85605033) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
be6289f4af
commit
4424440f42
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user