patch.bbclass: avoid traceback for CmdError at resolve
authorChris Larson <chris_larson@mentor.com>
Thu, 21 Oct 2010 23:18:27 +0000 (16:18 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 22 Oct 2010 01:52:03 +0000 (18:52 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/patch.bbclass

index 58b931f..7629e9a 100644 (file)
@@ -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