summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-07 11:57:11 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-08 23:47:13 +0000
commit2fcc8d6e5253c4e9a76fa7b87f7a5d20ad29f0dd (patch)
treedacd8d3348761290b49e1af4b13ea9abb821107d /scripts
parentc3c25ac53da127bc481be6c07e3d5eb4f73bd22e (diff)
downloadpoky-2fcc8d6e5253c4e9a76fa7b87f7a5d20ad29f0dd.tar.gz
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. (From OE-Core rev: 47822a2aff56fd338c16b5ad756feda9f395a8a1) (From OE-Core rev: 6fb1bb71b92d47eda48d24d3c0440b5219ac1fcd) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 711399a1fc..cdd76dc9a7 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1320,7 +1320,7 @@ def reset(args, config, basepath, workspace):
1320 for recipe in recipes: 1320 for recipe in recipes:
1321 targets.append(recipe) 1321 targets.append(recipe)
1322 recipefile = workspace[recipe]['recipefile'] 1322 recipefile = workspace[recipe]['recipefile']
1323 if recipefile: 1323 if recipefile and os.path.exists(recipefile):
1324 targets.extend(get_bbclassextend_targets(recipefile, recipe)) 1324 targets.extend(get_bbclassextend_targets(recipefile, recipe))
1325 try: 1325 try:
1326 exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets)) 1326 exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets))