summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-25 14:54:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 16:54:04 +0100
commitdaed107ce188c6ae53a3d612de58885f23b7257e (patch)
tree5ae56653c3b71b6c23d3aba01c4b6abafd27b16f /bitbake/lib/bb/event.py
parent60218d19f7c3651908e352e5e001257fd34d138b (diff)
downloadpoky-daed107ce188c6ae53a3d612de58885f23b7257e.tar.gz
bitbake: show more information for NoProvider errors
"Nothing PROVIDES" errors often come up when a recipe has been skipped for some reason, and therefore it is useful to print out that reason information when showing the error so that the user understands why the error has occurred. Given that we already feed the reason information into the skiplist for various situations (COMMERCIAL_LICENSE, COMPATIBLE_MACHINE etc.) this should now output a useful error message for skipped recipes. Fixes [YOCTO #846], [YOCTO #1127] (Bitbake rev: 6765218430e31c165888f26fbc75023c89a6eab2) 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/event.py')
-rw-r--r--bitbake/lib/bb/event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 93c04ba21a..9dd7b663ee 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -287,11 +287,12 @@ class BuildCompleted(BuildBase):
287class NoProvider(Event): 287class NoProvider(Event):
288 """No Provider for an Event""" 288 """No Provider for an Event"""
289 289
290 def __init__(self, item, runtime=False, dependees=None): 290 def __init__(self, item, runtime=False, dependees=None, reasons=[]):
291 Event.__init__(self) 291 Event.__init__(self)
292 self._item = item 292 self._item = item
293 self._runtime = runtime 293 self._runtime = runtime
294 self._dependees = dependees 294 self._dependees = dependees
295 self._reasons = reasons
295 296
296 def getItem(self): 297 def getItem(self):
297 return self._item 298 return self._item