]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
devtool: reset: allow reset to work if the recipe file has been deleted
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Jul 2016 22:55:54 +0000 (10:55 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 10 Jul 2016 23:02:42 +0000 (11:02 +1200)
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@linux.intel.com>
scripts/lib/devtool/standard.py

index a7e365f18d496e7e1c4ed40057909ed0452cb78b..8236dd51e9b601ec9c4ab194eead14ad1feb1f93 100644 (file)
@@ -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))