[oe-commits] Chris Larson : patch.bbclass: avoid traceback for CmdError at resolve
git version control
git at git.openembedded.org
Fri Oct 22 03:15:50 UTC 2010
Module: openembedded.git
Branch: master
Commit: 18690b2e5a56f10697bd594555f7baff16637e0e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=18690b2e5a56f10697bd594555f7baff16637e0e
Author: Chris Larson <chris_larson at mentor.com>
Date: Thu Oct 21 16:18:27 2010 -0700
patch.bbclass: avoid traceback for CmdError at resolve
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
classes/patch.bbclass | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 58b931f..7629e9a 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
More information about the Openembedded-commits
mailing list