From e5f489c3abc2aece8badb789b0a47bf118134a06 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 12 Aug 2007 12:21:17 +0000 Subject: seppuku.bbclass: Avoid recursion problem (#2722) --- classes/seppuku.bbclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index a3b8b36dd0..720930fc05 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -267,6 +267,13 @@ python seppuku_eventhandler() { from bb import data, mkdirhier, build import bb, os, glob + event = e + data = e.data + name = getName(event) + if name == "MsgNote": + # avoid recursion + return NotHandled + # Try to load our exotic libraries try: import MultipartPostHandler @@ -280,9 +287,6 @@ python seppuku_eventhandler() { bb.note("Failed to import the cookielib and urllib2, make sure to use python2.4") return NotHandled - event = e - data = e.data - name = getName(event) if name == "PkgFailed": if not bb.data.getVar('SEPPUKU_AUTOBUILD', data, True) == "0": build.exec_task('do_clean', data) -- cgit v1.2.3