1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 00:39:46 +00:00

Move the output of no provider and multiple provider messages into the UI

(Bitbake rev: 36b980c16bf74b3c2066cc120f9f27e11f189a63)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-06-08 13:20:35 -07:00
committed by Richard Purdie
parent 75d49840cf
commit 7e53a3b5cf
3 changed files with 28 additions and 32 deletions
+18 -2
View File
@@ -147,17 +147,33 @@ def init(server, eventHandler):
break
if isinstance(event, bb.cooker.CookerExit):
break
if isinstance(event, bb.event.MultipleProviders):
print("NOTE: multiple providers are available for %s%s (%s)" % (event._is_runtime and "runtime " or "",
event._item,
", ".join(event._candidates)))
print("NOTE: consider defining a PREFERRED_PROVIDER entry to match %s" % event._item)
continue
if isinstance(event, bb.event.NoProvider):
if event._runtime:
r = "R"
else:
r = ""
if event._dependees:
print("ERROR: Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r))
else:
print("ERROR: Nothing %sPROVIDES '%s'" % (r, event._item))
continue
# ignore
if isinstance(event, (bb.event.BuildBase,
bb.event.NoProvider,
bb.event.MultipleProviders,
bb.event.StampUpdate,
bb.event.ConfigParsed,
bb.event.RecipeParsed,
bb.runqueue.runQueueEvent,
bb.runqueue.runQueueExitWait)):
continue
print("Unknown Event: %s" % event)
except KeyboardInterrupt: