[OE-core] package.bbclass: Handle subprocess errors correctly
Chris Larson
clarson at kergoth.com
Mon Mar 25 17:37:15 UTC 2013
On Mon, Mar 25, 2013 at 9:54 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:
> If an error occurs in subprocess.call() we currently don't catch it. In
> particular
> we have issues where debugedit is segfaulting unnoticed. This fixes up
> various code paths to catch the errors.
>
Well spotted, at a minimum we should be using check_call(), so an
unanticipated failure results in an uncaught exception, but explicitly
checking retval makes sense as well.
--
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130325/a97028dc/attachment-0002.html>
More information about the Openembedded-core
mailing list