[oe-commits] [bitbake] 02/02: tinfoil: improve get_recipe_file() exception text
git at git.openembedded.org
git at git.openembedded.org
Thu Mar 30 09:43:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 8922f1d23400049d2894a97915a533769a24ca07
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Thu Mar 30 15:24:00 2017 +1300
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
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/tinfoil.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index 14a2271..928333a 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -368,9 +368,9 @@ class Tinfoil:
taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
skipreasons = taskdata.get_reasons(pn)
if skipreasons:
- raise bb.providers.NoProvider(skipreasons)
+ raise bb.providers.NoProvider('%s is unavailable:\n %s' % (pn, ' \n'.join(skipreasons)))
else:
- raise bb.providers.NoProvider('Unable to find any recipe file matching %s' % pn)
+ raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn)
return best[3]
def get_file_appends(self, fn):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list