summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/event.py10
-rw-r--r--lib/bb/ui/knotty.py1
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 67cfceaf5..10eae5fde 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -589,6 +589,16 @@ class PackageInfo(Event):
Event.__init__(self)
self._pkginfolist = pkginfolist
+class MetadataEvent(Event):
+ """
+ Generic event that target for OE-Core classes
+ to report information during asynchrous execution
+ """
+ def __init__(self, eventtype, eventdata):
+ Event.__init__(self)
+ self.type = eventtype
+ self.data = eventdata
+
class SanityCheck(Event):
"""
Event to issue sanity check
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 0211b50ab..c1ee9f526 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -477,6 +477,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
# ignore
if isinstance(event, (bb.event.BuildBase,
+ bb.event.MetadataEvent,
bb.event.StampUpdate,
bb.event.ConfigParsed,
bb.event.RecipeParsed,