diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-08 13:20:35 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-06-08 13:37:06 -0700 |
commit | 36b980c16bf74b3c2066cc120f9f27e11f189a63 (patch) | |
tree | 15d25cfac98a172507a8225797d950edacd404cd /lib/bb/ui/knotty.py | |
parent | 49b8bab706c59e93287f8540187b62ba3ece0a11 (diff) | |
download | bitbake-36b980c16bf74b3c2066cc120f9f27e11f189a63.tar.gz |
Move the output of no provider and multiple provider messages into the UI
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r-- | lib/bb/ui/knotty.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index a7611a91a..828e9d235 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -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: |