From: Paul Eggleton Date: Tue, 5 Jul 2016 22:55:54 +0000 (+1200) Subject: devtool: reset: allow reset to work if the recipe file has been deleted X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=314198057ff1f703bc1a150c335f3987eb2cce01;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index a7e365f18d4..8236dd51e9b 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: 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))