bitbake: lib/bb/runqueue.py: fix exceptions with -k and failed targets
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 23 Sep 2012 13:14:24 +0000 (14:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Sep 2012 11:13:51 +0000 (12:13 +0100)
commit1d8ed0a9360178ead3dbcef37e1a2503aeec36e4
tree88cc91743895adbfa8c1371e5454a94880a95f13
parentbd8341d8385e1a8c17c163915922c908646859d2
bitbake: lib/bb/runqueue.py: fix exceptions with -k and failed targets

If a target dependency is marked as failed and yet we are continuing on
because -k has been specified, don't try to access the dependency's data
in taskData.build_targets since it will have been removed. This fixes
"IndexError: list index out of range" errors in this situation.

Also, do not print the "unhandled exception" message when SystemExit is
raised since we will have reported the actual error already in this
case (e.g. when -k has been specified and some targets failed).

Fixes [YOCTO #3133].

(Bitbake rev: 70eebc184eb1ab3678be87bed019b5beadecdc89)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py