diff options
| author | Chris Larson <chris_larson@mentor.com> | 2010-06-08 13:20:35 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:35 +0100 |
| commit | 7e53a3b5cff3599753d0729a488eb393b341da32 (patch) | |
| tree | 8f77550046494afbb59afe8384e6d9b61d229fed /bitbake/lib/bb/ui | |
| parent | 75d49840cf1e7df9625f3c6d8bfb400599b66f84 (diff) | |
| download | poky-7e53a3b5cff3599753d0729a488eb393b341da32.tar.gz | |
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.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index a7611a91a5..828e9d235a 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
| @@ -147,17 +147,33 @@ def init(server, eventHandler): | |||
| 147 | break | 147 | break |
| 148 | if isinstance(event, bb.cooker.CookerExit): | 148 | if isinstance(event, bb.cooker.CookerExit): |
| 149 | break | 149 | break |
| 150 | if isinstance(event, bb.event.MultipleProviders): | ||
| 151 | print("NOTE: multiple providers are available for %s%s (%s)" % (event._is_runtime and "runtime " or "", | ||
| 152 | event._item, | ||
| 153 | ", ".join(event._candidates))) | ||
| 154 | print("NOTE: consider defining a PREFERRED_PROVIDER entry to match %s" % event._item) | ||
| 155 | continue | ||
| 156 | if isinstance(event, bb.event.NoProvider): | ||
| 157 | if event._runtime: | ||
| 158 | r = "R" | ||
| 159 | else: | ||
| 160 | r = "" | ||
| 161 | |||
| 162 | if event._dependees: | ||
| 163 | print("ERROR: Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r)) | ||
| 164 | else: | ||
| 165 | print("ERROR: Nothing %sPROVIDES '%s'" % (r, event._item)) | ||
| 166 | continue | ||
| 150 | 167 | ||
| 151 | # ignore | 168 | # ignore |
| 152 | if isinstance(event, (bb.event.BuildBase, | 169 | if isinstance(event, (bb.event.BuildBase, |
| 153 | bb.event.NoProvider, | ||
| 154 | bb.event.MultipleProviders, | ||
| 155 | bb.event.StampUpdate, | 170 | bb.event.StampUpdate, |
| 156 | bb.event.ConfigParsed, | 171 | bb.event.ConfigParsed, |
| 157 | bb.event.RecipeParsed, | 172 | bb.event.RecipeParsed, |
| 158 | bb.runqueue.runQueueEvent, | 173 | bb.runqueue.runQueueEvent, |
| 159 | bb.runqueue.runQueueExitWait)): | 174 | bb.runqueue.runQueueExitWait)): |
| 160 | continue | 175 | continue |
| 176 | |||
| 161 | print("Unknown Event: %s" % event) | 177 | print("Unknown Event: %s" % event) |
| 162 | 178 | ||
| 163 | except KeyboardInterrupt: | 179 | except KeyboardInterrupt: |
