[oe-commits] Christopher Larson : patch.bbclass: catch exceptions raised in the Resolve( ).
git version control
git at git.openembedded.org
Sun Jan 24 10:39:19 UTC 2010
Module: openembedded.git
Branch: holger/staging-branch
Commit: f04c187215cc4d0871c633e29ac6532a9d26c4f2
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f04c187215cc4d0871c633e29ac6532a9d26c4f2
Author: Christopher Larson <clarson at mvista.com>
Date: Wed Aug 19 17:24:33 2009 +0000
patch.bbclass: catch exceptions raised in the Resolve().
Signed-off-by: Chris Larson <clarson at mvista.com>
---
classes/patch.bbclass | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 33184df..1a8fa0f 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
More information about the Openembedded-commits
mailing list