[bitbake-devel] [PATCH 2/2] tinfoil: improve get_recipe_file() exception text
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Mar 30 02:24:00 UTC 2017
* 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>
---
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):
--
2.9.3
More information about the bitbake-devel
mailing list