diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-08 17:05:55 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-08 17:06:06 -0700 |
commit | 444d86f372b599d0d72c0c8e56ee3cb923ee0515 (patch) | |
tree | 72f8d07dfeb558491b9a9d61cfb0f7f5f3ee43f8 /classes/failure-cleanup.bbclass | |
parent | 8a9cae9876019daab44e068b5611a1a9ab34b7bf (diff) |
Using NotHandled/Handled in event handlers is deprecated
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/failure-cleanup.bbclass')
-rw-r--r-- | classes/failure-cleanup.bbclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/classes/failure-cleanup.bbclass b/classes/failure-cleanup.bbclass index 3870c756c8..0425602ce8 100644 --- a/classes/failure-cleanup.bbclass +++ b/classes/failure-cleanup.bbclass @@ -4,15 +4,13 @@ addhandler failure_eventhandler python failure_eventhandler() { from bb import build, event, note, error, data - from bb.event import NotHandled, getName + from bb.event import getName if e.data is None or getName(e) == "MsgNote": - return NotHandled + return name = getName(e) if name == "PkgFailed": bb.note("Exectuting -c clean on failed build") build.exec_func('do_clean', e.data) - - return NotHandled } |