summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-10 16:53:19 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:49 +0000
commit098f63d6727e3b4db0a8906deee52c75f03047fb (patch)
treea6937b895dc0126fa684695b15e42700f8fb3eb2 /bitbake/lib/bb/ui/knotty.py
parent5a92e67b8655d0971c6e3e8233e984ef9ad42997 (diff)
downloadpoky-098f63d6727e3b4db0a8906deee52c75f03047fb.tar.gz
Rename command events, adjust compareRevisions
- Moved the logic for comparing revisions from cooker into command - Removed 'Cooker' from the event names - Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to be a subclass of CommandExit (Bitbake rev: c51ed5d7a9971fad6019dac6c35a71b8a54ab16a) 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/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index e0f08ecb6e..d3534a0f5b 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -163,15 +163,15 @@ def main(server, eventHandler):
163 % ( event.total, event.cached, event.parsed, event.virtuals, event.skipped, event.masked, event.errors))) 163 % ( event.total, event.cached, event.parsed, event.virtuals, event.skipped, event.masked, event.errors)))
164 continue 164 continue
165 165
166 if isinstance(event, bb.command.CookerCommandCompleted): 166 if isinstance(event, bb.command.CommandCompleted):
167 break 167 break
168 if isinstance(event, bb.command.CookerCommandSetExitCode): 168 if isinstance(event, bb.command.CommandFailed):
169 return_value = event.exitcode 169 return_value = event.exitcode
170 continue
171 if isinstance(event, bb.command.CookerCommandFailed):
172 return_value = 1
173 logger.error("Command execution failed: %s" % event.error) 170 logger.error("Command execution failed: %s" % event.error)
174 break 171 break
172 if isinstance(event, bb.command.CommandExit):
173 return_value = event.exitcode
174 continue
175 if isinstance(event, bb.cooker.CookerExit): 175 if isinstance(event, bb.cooker.CookerExit):
176 break 176 break
177 if isinstance(event, bb.event.MultipleProviders): 177 if isinstance(event, bb.event.MultipleProviders):