diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-30 15:23:59 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-31 10:08:35 +0100 |
commit | c2ac78c4d8fb6aa85a6787cf170ea7f06659d2eb (patch) | |
tree | ff50e0bbd21a8e092ea2948104c018776e30f0de /bitbake | |
parent | e5e463fbbb19c50d225620f9ec0e7fadbc9278a7 (diff) | |
download | poky-c2ac78c4d8fb6aa85a6787cf170ea7f06659d2eb.tar.gz |
bitbake: 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.)
(Bitbake rev: 54a4757ca706afc6e98c7692f960592e80cab12b)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index c2ee707298..14a2271cd2 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -363,7 +363,7 @@ class Tinfoil: | |||
363 | skipped. | 363 | skipped. |
364 | """ | 364 | """ |
365 | best = self.find_best_provider(pn) | 365 | best = self.find_best_provider(pn) |
366 | if not best: | 366 | if not best or (len(best) > 3 and not best[3]): |
367 | skiplist = self.get_skipped_recipes() | 367 | skiplist = self.get_skipped_recipes() |
368 | taskdata = bb.taskdata.TaskData(None, skiplist=skiplist) | 368 | taskdata = bb.taskdata.TaskData(None, skiplist=skiplist) |
369 | skipreasons = taskdata.get_reasons(pn) | 369 | skipreasons = taskdata.get_reasons(pn) |