generic-poky/bitbake/lib/bb
Elliot Smith d9d715b9f9 bitbake: toasterui: capture keyboard interrupts the same way as knotty
knotty captures two levels of keyboard interrupt: a single interrupt
or two interrupts in a row. These then trigger stateShutdown
and stateForceShutdown respectively.

toasterui doesn't have an equivalent way of capturing interrupts and
using them to shut down bitbake. Now that we are no longer using
knotty + XMLRPCServer for our command line builds (since switching to
per-project build directories), we see some odd side effects of this,
such as builds continuing after they have been interrupted on the
command line.

Bring toasterui in line with knotty (copy-paste most of the code
in knotty.py which deals with interrupts) so that a keyboard
interrupt actually shuts down the bitbake server (if not in
observe only mode).

Additionally use the cancel_cli_build() method to set the Build
status to CANCELLED in Toaster's db when we get keyboard interrupts.
This means that builds interrupted on the command line show as
cancelled (same as if they'd been cancelled from the Toaster UI),
as specified in the UI designs.

[YOCTO #8515]

(Bitbake rev: d39d2edca95900da433074ee95a192d7bfe7090d)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-17 14:43:30 +01:00
..
fetch2 bitbake: fetch: Use OrderedDict for url parameters 2016-05-13 13:41:32 +01:00
parse bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: server/process: Fix missing log messages issue 2016-05-14 23:05:15 +01:00
tests bitbake: fetch: Use OrderedDict for url parameters 2016-05-13 13:41:32 +01:00
ui bitbake: toasterui: capture keyboard interrupts the same way as knotty 2016-05-17 14:43:30 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
build.py bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
cache.py bitbake: contrib/dump_cache.py, cache: Fix to use python 3 syntax 2016-05-13 13:41:32 +01:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: checksum: In FileChecksumCache don't follow directory symlinks 2016-03-30 12:01:29 +01:00
codeparser.py bitbake: bb/cache: drop some unused arguments 2016-02-18 07:41:15 +00:00
command.py bitbake: command: make setEventMask readonly 2016-03-07 17:23:04 +00:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: cooker/toasterui: Drop SEND_DEPENDS_TREE UI feature 2016-05-14 23:05:14 +01:00
cookerdata.py bitbake: cookerdata: Fix log messages and ensure we exit 2016-05-13 13:41:32 +01:00
daemonize.py bitbake: daemonize/prserv/tests/fetch: Convert file() -> open() 2016-05-13 13:41:32 +01:00
data.py bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
data_smart.py bitbake: bb.data_smart: use iter() for __len__ 2016-05-06 10:18:12 +01:00
event.py bitbake: event/msg: Pass formatted exceptions 2016-05-13 13:41:32 +01:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
main.py bitbake: main: Ensure exceptions are correctly displayed 2016-05-13 13:41:33 +01:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
msg.py bitbake: event/msg: Pass formatted exceptions 2016-05-13 13:41:32 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Return str instead of unicode for sqlite3 text queries 2016-04-06 10:29:47 +01:00
process.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
providers.py bitbake: providers: Add PREFERRED_RPROVIDER support 2016-04-15 06:59:44 +01:00
runqueue.py bitbake: runqueue.py: always emit bb.event.DepTreeGenerated 2016-05-14 23:05:14 +01:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: bitbake: Update logger.warn() -> logger.warning() 2016-05-11 10:34:30 +01:00
taskdata.py bitbake: taskdata: Fix traceback issue with missing provider 2016-02-15 16:48:12 +00:00
tinfoil.py bitbake: tinfoil: remove logging handler at shutdown 2015-09-23 22:44:56 +01:00
utils.py bitbake: utils: Force bitbake to en_US.UTF-8 locale setting everywhere 2016-05-13 13:41:32 +01:00