mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
devtool: fix update-recipe dry-run mode
When running devtool update-recipe with --mode=srcrev AND --append switch in dry-run, we get the following error: Traceback (most recent call last): [...] Exception: destpath should be set here Fix this by removing a misplaced else statement in _update_recipe_srcrev (From OE-Core rev: edfa2aac5c39e12e1149134a6241ad4e5b2ebc46) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 85ba125703d5b442133fd7c470b915460ee68ac9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
792649dee0
commit
4e65f8e2ef
@@ -1576,11 +1576,10 @@ def _update_recipe_srcrev(recipename, workspace, srctree, rd, appendlayerdir, wi
|
||||
patchfields['SRC_URI'] = '\\\n '.join(srcuri)
|
||||
if dry_run_outdir:
|
||||
logger.info('Creating bbappend (dry-run)')
|
||||
else:
|
||||
appendfile, destpath = oe.recipeutils.bbappend_recipe(
|
||||
rd, appendlayerdir, files, wildcardver=wildcard_version,
|
||||
extralines=patchfields, removevalues=removevalues,
|
||||
redirect_output=dry_run_outdir)
|
||||
appendfile, destpath = oe.recipeutils.bbappend_recipe(
|
||||
rd, appendlayerdir, files, wildcardver=wildcard_version,
|
||||
extralines=patchfields, removevalues=removevalues,
|
||||
redirect_output=dry_run_outdir)
|
||||
else:
|
||||
files_dir = _determine_files_dir(rd)
|
||||
for basepath, path in upd_f.items():
|
||||
|
||||
Reference in New Issue
Block a user