summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-10-21 16:18:27 -0700
committerChris Larson <chris_larson@mentor.com>2010-10-21 18:52:03 -0700
commit18690b2e5a56f10697bd594555f7baff16637e0e (patch)
treefd746f0da60833a92ea617f86d623e99c69a03e5 /classes
parent357d6443e31f52ff7109d43d1f369d6a1a262f73 (diff)
downloadopenembedded-18690b2e5a56f10697bd594555f7baff16637e0e.tar.gz
patch.bbclass: avoid traceback for CmdError at resolve
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/patch.bbclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 58b931f966..7629e9a15a 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -115,10 +115,9 @@ python patch_do_patch() {
bb.note("Applying patch '%s' (%s)" % (pname, oe.path.format_display(local, d)))
try:
patchset.Import({"file":local, "remote":url, "strippath": striplevel}, True)
- except Exception:
- import sys
- raise bb.build.FuncFailed(str(sys.exc_value))
- resolver.Resolve()
+ resolver.Resolve()
+ except Exception, exc:
+ bb.fatal(str(exc))
}
addtask patch after do_unpack