summaryrefslogtreecommitdiffstats
path: root/lib/bb/event.py
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-09-12 22:42:45 -0700
committerChris Larson <clarson@mvista.com>2009-09-14 11:08:23 -0700
commita002f4f0d13ea7dca261b77d5e2278c3fd35acda (patch)
tree858bfe8315b4052f3a0b153d173a04dfebbc4791 /lib/bb/event.py
parent30d00e1a550931cb7f62e6574a7dd2d7b33f182b (diff)
downloadbitbake-a002f4f0d13ea7dca261b77d5e2278c3fd35acda.tar.gz
Add a RecipeParsed event, which can be used as an alternative to anonymous functions.
Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 8f0a1961d..86b566feb 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -125,6 +125,13 @@ def getName(e):
class ConfigParsed(Event):
"""Configuration Parsing Complete"""
+class RecipeParsed(Event):
+ """ Recipe Parsing Complete """
+
+ def __init__(self, fn, d):
+ self.fn = fn
+ Event.__init__(self, d)
+
class StampUpdate(Event):
"""Trigger for any adjustment of the stamp files to happen"""