[oe-commits] [openembedded-core] 20/31: devtool: reset: allow reset to work if the recipe file has been deleted

git at git.openembedded.org git at git.openembedded.org
Tue Jul 12 22:11:31 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 47822a2aff56fd338c16b5ad756feda9f395a8a1
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Thu Jul 7 11:57:11 2016 +1200

    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 <paul.eggleton at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at 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 e2f4f8f..5be4d26 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))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list