From b8321c5658124c50009a3c4dbead2df49e662812 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 Jun 2011 17:30:17 +0100 Subject: bitbake/event/ast: Add RecipePreFinalise event One of the implications is we need to register the event handlers before executing the anonymous python functions. I can't find any issue with making that change in any existing metadata use cases. (Bitbake rev: a981df3cc9bf410d24f39919959952bdc6c76d03) Signed-off-by: Richard Purdie --- bitbake/lib/bb/event.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/event.py') diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index a3288b619b..7d47edb9e7 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py @@ -206,13 +206,17 @@ def getName(e): class ConfigParsed(Event): """Configuration Parsing Complete""" -class RecipeParsed(Event): - """ Recipe Parsing Complete """ - +class RecipeEvent(Event): def __init__(self, fn): self.fn = fn Event.__init__(self) +class RecipePreFinalise(RecipeEvent): + """ Recipe Parsing Complete but not yet finialised""" + +class RecipeParsed(RecipeEvent): + """ Recipe Parsing Complete """ + class StampUpdate(Event): """Trigger for any adjustment of the stamp files to happen""" -- cgit v1.2.3-54-g00ecf