diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-30 15:24:00 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-31 10:08:35 +0100 |
commit | 03b4226242e1fdff2021f562b27430bc12575087 (patch) | |
tree | 5fe5d812f135829900f8548d5a0c23a63e05eaff /bitbake/lib/bb/tinfoil.py | |
parent | c2ac78c4d8fb6aa85a6787cf170ea7f06659d2eb (diff) | |
download | poky-03b4226242e1fdff2021f562b27430bc12575087.tar.gz |
bitbake: tinfoil: improve get_recipe_file() exception text
* Turn reasons from a list into a string (usually there will be only one
reason, but the interface provides for more than one) and state up
front that the recipe is unavailable for clarity
* Use quotes around invalid recipe name
(Bitbake rev: 8922f1d23400049d2894a97915a533769a24ca07)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tinfoil.py')
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 14a2271cd2..928333a500 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -368,9 +368,9 @@ class Tinfoil: | |||
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) |
370 | if skipreasons: | 370 | if skipreasons: |
371 | raise bb.providers.NoProvider(skipreasons) | 371 | raise bb.providers.NoProvider('%s is unavailable:\n %s' % (pn, ' \n'.join(skipreasons))) |
372 | else: | 372 | else: |
373 | raise bb.providers.NoProvider('Unable to find any recipe file matching %s' % pn) | 373 | raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn) |
374 | return best[3] | 374 | return best[3] |
375 | 375 | ||
376 | def get_file_appends(self, fn): | 376 | def get_file_appends(self, fn): |