mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
devtool: rename unused variables
(From OE-Core rev: 92b84d54292518a387460ee1ec5a994023eb26fc) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
87fba31ad7
commit
c977cdf3d8
|
@ -42,7 +42,7 @@ def deploy(args, config, basepath, workspace):
|
||||||
deploy_dir = os.path.join(basepath, 'target_deploy', args.target)
|
deploy_dir = os.path.join(basepath, 'target_deploy', args.target)
|
||||||
deploy_file = os.path.join(deploy_dir, args.recipename + '.list')
|
deploy_file = os.path.join(deploy_dir, args.recipename + '.list')
|
||||||
|
|
||||||
stdout, stderr = exec_build_env_command(config.init_path, basepath, 'bitbake -e %s' % args.recipename, shell=True)
|
stdout, _ = 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)
|
recipe_outdir = re.search(r'^D="(.*)"', stdout, re.MULTILINE).group(1)
|
||||||
if not os.path.exists(recipe_outdir) or not os.listdir(recipe_outdir):
|
if not os.path.exists(recipe_outdir) or not os.listdir(recipe_outdir):
|
||||||
logger.error('No files to deploy - have you built the %s recipe? If so, the install step has not installed any files.' % args.recipename)
|
logger.error('No files to deploy - have you built the %s recipe? If so, the install step has not installed any files.' % args.recipename)
|
||||||
|
@ -50,7 +50,7 @@ def deploy(args, config, basepath, workspace):
|
||||||
|
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
print('Files to be deployed for %s on target %s:' % (args.recipename, args.target))
|
print('Files to be deployed for %s on target %s:' % (args.recipename, args.target))
|
||||||
for root, dirs, files in os.walk(recipe_outdir):
|
for root, _, files in os.walk(recipe_outdir):
|
||||||
for fn in files:
|
for fn in files:
|
||||||
print(' %s' % os.path.join(destdir, os.path.relpath(root, recipe_outdir), fn))
|
print(' %s' % os.path.join(destdir, os.path.relpath(root, recipe_outdir), fn))
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -94,7 +94,7 @@ def add(args, config, basepath, workspace):
|
||||||
source = srctree
|
source = srctree
|
||||||
if args.version:
|
if args.version:
|
||||||
extracmdopts += ' -V %s' % args.version
|
extracmdopts += ' -V %s' % args.version
|
||||||
stdout, stderr = exec_build_env_command(config.init_path, basepath, 'recipetool --color=%s create -o %s "%s" %s' % (color, recipefile, source, extracmdopts))
|
stdout, _ = exec_build_env_command(config.init_path, basepath, 'recipetool --color=%s create -o %s "%s" %s' % (color, recipefile, source, extracmdopts))
|
||||||
logger.info('Recipe %s has been automatically created; further editing may be required to make it fully functional' % recipefile)
|
logger.info('Recipe %s has been automatically created; further editing may be required to make it fully functional' % recipefile)
|
||||||
|
|
||||||
_add_md5(config, args.recipename, recipefile)
|
_add_md5(config, args.recipename, recipefile)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user