Fixed this warning:
WARNING: Unknown event: <bb.event.TargetsAcquired object at 0x7f95b8753d50>
by ensuring that code continues the main event loop
after processing TargetsAcquired event.

Signed-off-by: Ed Bartosh <[email protected]>
---
 bitbake/lib/bb/ui/toasterui.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index c4fce63..ea68e68 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -253,10 +253,10 @@ def main(server, eventHandler, params):
 
                     buildinfohelper.store_targets(targets)
 
-            # when the build proper starts, we extract information about
-            # any layers and config data
-            if build_started:
-                buildinfohelper.update_build(event)
+                # when the build proper starts, we extract information about
+                # any layers and config data
+                if build_started:
+                    buildinfohelper.update_build(event)
                 continue
 
             if isinstance(event, (bb.build.TaskStarted, 
bb.build.TaskSucceeded, bb.build.TaskFailedSilent)):
-- 
2.1.4

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to