[OE-core] [PATCH 5/6] devtool: reset: allow reset to work if the recipe file has been deleted

Paul Eggleton paul.eggleton at linux.intel.com
Wed Jul 6 23:57:11 UTC 2016

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 <paul.eggleton at linux.intel.com>
 scripts/lib/devtool/standard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index a7e365f..8236dd5 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1327,7 +1327,7 @@ def reset(args, config, basepath, workspace):
         for recipe in recipes:
             recipefile = workspace[recipe]['recipefile']
-            if recipefile:
+            if recipefile and os.path.exists(recipefile):
                 targets.extend(get_bbclassextend_targets(recipefile, recipe))
             exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets))

More information about the Openembedded-core mailing list