diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-07-19 11:56:03 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 08:41:12 +0100 |
| commit | 21bb330f4632ae9e8dd9eaff2879bcd24f9cf194 (patch) | |
| tree | 476a3ff0b5d7fc0f89fafc0cba2b720a6e6b5f3e /bitbake/lib/bb/ui/ncurses.py | |
| parent | eb7401d47087ba2347dcf780a0d07969bed4c072 (diff) | |
| download | poky-21bb330f4632ae9e8dd9eaff2879bcd24f9cf194.tar.gz | |
bitbake: lib/bb/event: refactor printing events
We really ought to have just one place where the string representation
of these events is produced. This doesn't take any real control away
from the UI - if an alternative representation is desired, that can
still be made.
(Bitbake rev: cb15db2a799be6d8eab9a2a43a9a573f89229cff)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/ncurses.py')
| -rw-r--r-- | bitbake/lib/bb/ui/ncurses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py index ca845a32ad..8690c529cc 100644 --- a/bitbake/lib/bb/ui/ncurses.py +++ b/bitbake/lib/bb/ui/ncurses.py | |||
| @@ -315,7 +315,7 @@ class NCursesUI: | |||
| 315 | # also allow them to now exit with a single ^C | 315 | # also allow them to now exit with a single ^C |
| 316 | shutdown = 2 | 316 | shutdown = 2 |
| 317 | if isinstance(event, bb.command.CommandFailed): | 317 | if isinstance(event, bb.command.CommandFailed): |
| 318 | mw.appendText("Command execution failed: %s" % event.error) | 318 | mw.appendText(str(event)) |
| 319 | time.sleep(2) | 319 | time.sleep(2) |
| 320 | exitflag = True | 320 | exitflag = True |
| 321 | if isinstance(event, bb.command.CommandExit): | 321 | if isinstance(event, bb.command.CommandExit): |
