summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-08-09 13:52:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:21:02 +0100
commit840a427ed2943136fba60c721d19870c79dabe23 (patch)
tree95dd4603f8ebe514e8331704bb7fa5511c7acd95 /bitbake/lib/bb/event.py
parentbaaa7adc168999bfe09e1f287608cc92f86ec0c0 (diff)
downloadpoky-840a427ed2943136fba60c721d19870c79dabe23.tar.gz
bitbake: taskdata: report close matches with NoProvider errors
Assuming there is no known reason why an item is not provided, show close matches on the assumption that it might have been a typo or other mistake. (Bitbake rev: ed81b0856b4a3892b53d39871eaaa6273390ea75) 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 9c134eed0d..ba25d38d89 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -341,12 +341,13 @@ class DiskFull(Event):
341class NoProvider(Event): 341class NoProvider(Event):
342 """No Provider for an Event""" 342 """No Provider for an Event"""
343 343
344 def __init__(self, item, runtime=False, dependees=None, reasons=[]): 344 def __init__(self, item, runtime=False, dependees=None, reasons=[], close_matches=[]):
345 Event.__init__(self) 345 Event.__init__(self)
346 self._item = item 346 self._item = item
347 self._runtime = runtime 347 self._runtime = runtime
348 self._dependees = dependees 348 self._dependees = dependees
349 self._reasons = reasons 349 self._reasons = reasons
350 self._close_matches = close_matches
350 351
351 def getItem(self): 352 def getItem(self):
352 return self._item 353 return self._item