summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-08 13:20:35 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:35 +0100
commit7e53a3b5cff3599753d0729a488eb393b341da32 (patch)
tree8f77550046494afbb59afe8384e6d9b61d229fed /bitbake/lib/bb/ui
parent75d49840cf1e7df9625f3c6d8bfb400599b66f84 (diff)
downloadopenembedded-core-7e53a3b5cff3599753d0729a488eb393b341da32.tar.gz
openembedded-core-7e53a3b5cff3599753d0729a488eb393b341da32.tar.bz2
openembedded-core-7e53a3b5cff3599753d0729a488eb393b341da32.tar.xz
openembedded-core-7e53a3b5cff3599753d0729a488eb393b341da32.zip
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>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/knotty.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index a7611a91a..828e9d235 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/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: