devtool: call parse_recipe with correct arguments
PATCH 1/1 devtool: call parse_recipe with correct arguments
Give the correct data object ("config data" instead of "recipe data") as an argument to oe.recipeutils.patch_recipe()
Fixes [YOCTO #7595]
--- scripts/lib/devtool/standard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/lib/devtool/standard.py +3 -2
@@ -482,7 +482,7 @@ def update_recipe(args, config, basepath, workspace): if remove_patches(srcuri, removepatches): patchfields['SRC_URI'] = ' '.join(srcuri) - oe.recipeutils.patch_recipe(rd, recipefile, patchfields) + oe.recipeutils.patch_recipe(tinfoil.config_data, recipefile, patchfields) if not 'git://' in orig_src_uri: logger.info('You will need to update SRC_URI within the recipe to point to a git repository where you have pushed your changes')
@@ -564,7 +564,8 @@ def update_recipe(args, config, basepath, workspace): updaterecipe = True if updaterecipe: logger.info('Updating recipe %s' % os.path.basename(recipefile)) - oe.recipeutils.patch_recipe(rd, recipefile, {'SRC_URI': ' '.join(srcuri)}) + oe.recipeutils.patch_recipe(tinfoil.config_data, + recipefile, {'SRC_URI': ' '.join(srcuri)}) elif not updatepatches: # Neither patches nor recipe were updated logger.info('No patches need updating')
Signature · 1 line
2.1.4
Quoted 31 lines · On Thursday 16 April 2015 19:37:57 Markus Lehtonen wrote:
Give the correct data object ("config data" instead of "recipe data") as an argument to
oe.recipeutils.patch_recipe()Fixes [YOCTO #7595]
Signed-off-by Markus Lehtonen <[email protected]>--- scripts/lib/devtool/standard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/scripts/lib/devtool/standard.pyindex 54920b2..d5ded2f 100644scripts/lib/devtool/standard.py +1
-1@@ -482,7 +482,7 @@ def update_recipe(args, config, basepath, workspace): if remove_patches(srcuri, removepatches): patchfields['SRC_URI'] = ' '.join(srcuri) - oe.recipeutils.patch_recipe(rd, recipefile, patchfields) + oe.recipeutils.patch_recipe(tinfoil.config_data, recipefile, patchfields) if not 'git://' in orig_src_uri:logger.info('You will need to update
SRC_URIwithin the recipe
to point to a git repository where you have pushed your changes') @@ -564,7 +564,8 @@ defupdate_recipe(args, config, basepath, workspace):
updaterecipe = True
if updaterecipe:
logger.info('Updating recipe %s' %os.path.basename(recipefile)) -oe.recipeutils.patch_recipe(rd, recipefile, {'SRC_URI': ' '.join(srcuri)})
scripts/lib/devtool/standard.py def update_recipe(args, config, basepath, workspace): · line 571
Quoted 5 lines
scripts/lib/devtool/standard.py +2
-0+ oe.recipeutils.patch_recipe(tinfoil.config_data, + recipefile, {'SRC_URI': ' '.join(srcuri)}) elif not updatepatches: # Neither patches nor recipe were updated logger.info('No patches need updating')
Ah yes, that would explain it!
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre