diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-07-07 11:57:11 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-12 23:10:15 +0100 |
commit | d56caf3408d6200d51dff62eae51ffb137ae7393 (patch) | |
tree | 445ed02319ebfa85765e35481f3c0c251a2b022d /scripts | |
parent | 117c80f9dc95717f4aac3f7ecd9b1f89f304f005 (diff) | |
download | poky-d56caf3408d6200d51dff62eae51ffb137ae7393.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)
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/standard.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
1323 | for recipe in recipes: | 1323 | for recipe in recipes: |
1324 | targets.append(recipe) | 1324 | targets.append(recipe) |
1325 | recipefile = workspace[recipe]['recipefile'] | 1325 | recipefile = workspace[recipe]['recipefile'] |
1326 | if recipefile: | 1326 | if recipefile and os.path.exists(recipefile): |
1327 | targets.extend(get_bbclassextend_targets(recipefile, recipe)) | 1327 | targets.extend(get_bbclassextend_targets(recipefile, recipe)) |
1328 | try: | 1328 | try: |
1329 | exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets)) | 1329 | exec_build_env_command(config.init_path, basepath, 'bitbake -c clean %s' % ' '.join(targets)) |