From: Paul Eggleton Date: Wed, 6 Jul 2016 23:57:11 +0000 (+1200) Subject: devtool: reset: allow reset to work if the recipe file has been deleted X-Git-Tag: uninative-1.3~373 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=47822a2aff56fd338c16b5ad756feda9f395a8a1;p=openembedded-core.git devtool: reset: allow reset to work if the recipe file has been deleted We were attempting to open the recipe file unconditionally here - we need to account for the possibility that the recipe file has been deleted or moved away by the user. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index e2f4f8fca3..5be4d26b29 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -1323,7 +1323,7 @@ def reset(args, config, basepath, workspace): for recipe in recipes: targets.append(recipe) recipefile = workspace[recipe]['recipefile'] - if recipefile: + if recipefile and os.path.exists(recipefile): targets.extend(get_bbclassextend_targets(recipefile, recipe)) try: exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets))