]> code.ossystems Code Review - openembedded-core.git/commit
Fix bitbake -k issue introduced by build exception cleanup
authorChris Larson <chris_larson@mentor.com>
Fri, 10 Sep 2010 18:34:39 +0000 (11:34 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:36 +0000 (14:46 +0000)
commitc90bfa57f5368ff833dc0a39c010a13df8c3b54c
treecd823bf6fb7fb92b10cf77172788f17516afc836
parentbfe4bec8adfc50106406ef8c097075a2e507a7eb
Fix bitbake -k issue introduced by build exception cleanup

A SystemExit from a python function wasn't being raised as a FuncFailed, which
resulted in it not being caught by the exception handlers in the runqueue for
the worker process, which resulted in a SystemExit exit, rather than os._exit,
which causes all manner of problems when used in a forked process.  This fixes
it by ensuring we raise a FuncFailed when seeing exceptions which aren't
instances of Exception.

(Bitbake rev: dafe92fe9f387450d9f9e9ff41c99388998b7495)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/build.py