summaryrefslogtreecommitdiffstats
path: root/lib/bb/tinfoil.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-30 15:23:59 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-30 10:42:40 +0100
commit54a4757ca706afc6e98c7692f960592e80cab12b (patch)
tree38b6f7316a6f87598f027b317dc69adcc3add90e /lib/bb/tinfoil.py
parentfdeaed70a7d1ff8be1a1de937cb864130b0c2c86 (diff)
downloadbitbake-contrib-54a4757ca706afc6e98c7692f960592e80cab12b.tar.gz
tinfoil: fix get_recipe_file() to return an error on invalid recipe
This function calls cooker.findBestProvider() but didn't handle the fact that that function returns a tuple (None, None, None, None) when there is no matching recipe. (This fixes devtool in OpenEmbedded showing a traceback when an invalid recipe is specified instead of a proper error message.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r--lib/bb/tinfoil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index c2ee70729..14a2271cd 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -363,7 +363,7 @@ class Tinfoil:
skipped.
"""
best = self.find_best_provider(pn)
- if not best:
+ if not best or (len(best) > 3 and not best[3]):
skiplist = self.get_skipped_recipes()
taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
skipreasons = taskdata.get_reasons(pn)