]> code.ossystems Code Review - openembedded-core.git/commit
classes/patch: avoid backtrace when patch does not apply
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 19 Jan 2012 13:59:15 +0000 (13:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2012 14:32:04 +0000 (14:32 +0000)
commitce6c80a1e68c2af0b4b5fa27582ad9c9f119e5c1
tree8f333beafbb2dbd682e1da8f5337a8657c901e81
parentd5b892467023d77d219ae05170c875f7b423aa78
classes/patch: avoid backtrace when patch does not apply

We don't need to see a Python stack backtrace when a patch does not
apply, just the error output from patch, so trap these kinds of errors
and ensure that we display the message and fail the task and nothing
else.

Fixes [YOCTO #1143]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/patch.bbclass
meta/lib/oe/patch.py