aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Larson <clarson@mvista.com>2009-08-19 17:24:33 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-01-28 14:20:18 +0100
commit71b8eabfe17a08f8f55d01b1e34a3193cb269609 (patch)
tree09de7820ab892d8e2356ab84505d6ce9cb0d1727
parent09774b0e3d69969caf97fee3f53947935e163d0a (diff)
downloadopenembedded-71b8eabfe17a08f8f55d01b1e34a3193cb269609.tar.gz
patch.bbclass: catch exceptions raised in the Resolve().
Signed-off-by: Chris Larson <clarson@mvista.com>
-rw-r--r--classes/patch.bbclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 33184df0d0..1a8fa0f278 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -543,10 +543,9 @@ python patch_do_patch() {
bb.note("Applying patch '%s' (%s)" % (pname, base_path_out(unpacked, d)))
try:
patchset.Import({"file":unpacked, "remote":url, "strippath": pnum}, True)
- except:
- import sys
- raise bb.build.FuncFailed(str(sys.exc_value))
- resolver.Resolve()
+ resolver.Resolve()
+ except Exception, e:
+ raise bb.build.FuncFailed(str(e))
}
EXPORT_FUNCTIONS do_patch