diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-10 16:53:19 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:49 +0000 |
commit | 098f63d6727e3b4db0a8906deee52c75f03047fb (patch) | |
tree | a6937b895dc0126fa684695b15e42700f8fb3eb2 /bitbake/lib/bb/ui/ncurses.py | |
parent | 5a92e67b8655d0971c6e3e8233e984ef9ad42997 (diff) | |
download | poky-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/ncurses.py')
-rw-r--r-- | bitbake/lib/bb/ui/ncurses.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py index 3bc8373964..1db4ec173b 100644 --- a/bitbake/lib/bb/ui/ncurses.py +++ b/bitbake/lib/bb/ui/ncurses.py | |||
@@ -288,12 +288,14 @@ class NCursesUI: | |||
288 | # else: | 288 | # else: |
289 | # bb.msg.error(bb.msg.domain.Build, "see log in %s" % logfile) | 289 | # bb.msg.error(bb.msg.domain.Build, "see log in %s" % logfile) |
290 | 290 | ||
291 | if isinstance(event, bb.command.CookerCommandCompleted): | 291 | if isinstance(event, bb.command.CommandCompleted): |
292 | exitflag = True | 292 | exitflag = True |
293 | if isinstance(event, bb.command.CookerCommandFailed): | 293 | if isinstance(event, bb.command.CommandFailed): |
294 | mw.appendText("Command execution failed: %s" % event.error) | 294 | mw.appendText("Command execution failed: %s" % event.error) |
295 | time.sleep(2) | 295 | time.sleep(2) |
296 | exitflag = True | 296 | exitflag = True |
297 | if isinstance(event, bb.command.CommandExit): | ||
298 | exitflag = True | ||
297 | if isinstance(event, bb.cooker.CookerExit): | 299 | if isinstance(event, bb.cooker.CookerExit): |
298 | exitflag = True | 300 | exitflag = True |
299 | 301 | ||