Skip to contentSkip to conversation

event/ast: Add RecipePostKeyExpansion event

PATCH New Richard Purdie 1 participant 1 message May 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 event/ast: Add RecipePostKeyExpansion event

---
 lib/bb/event.py     | 4 ++++
 lib/bb/parse/ast.py | 3 +++
 2 files changed, 7 insertions(+)
lib/bb/event.py +4 -0
index d1359f0100..0e6d9b2964 100644
@@ -389,6 +389,10 @@ class RecipeEvent(Event):
 class RecipePreFinalise(RecipeEvent):
     """ Recipe Parsing Complete but not yet finalised"""
 
+class RecipePostKeyExpansion(RecipeEvent):
+    """ Recipe Parsing Complete but not yet finalised"""
+
+
 class RecipeTaskPreProcess(RecipeEvent):
     """
     Recipe Tasks about to be finalised
lib/bb/parse/ast.py +3 -0
index eb8cfa21b8..785aa974eb 100644
@@ -338,6 +338,9 @@ def finalize(fn, d, variant = None):
         bb.event.fire(bb.event.RecipePreFinalise(fn), d)
 
         bb.data.expandKeys(d)
+
+        bb.event.fire(bb.event.RecipePostKeyExpansion(fn), d)
+
         runAnonFuncs(d)
 
         tasklist = d.getVar('__BBTASKS', False) or []
Signature · 1 line
2.25.1