[oe-commits] [bitbake] 01/03: event: Clear ui_queue after handling it

git at git.openembedded.org git at git.openembedded.org
Tue Jul 2 11:23:14 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 55631da1336589e583e8341a655179f7714ab3fe
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Jul 2 11:27:15 2019 +0100

    event: Clear ui_queue after handling it
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/event.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/event.py b/lib/bb/event.py
index 7cbb5ca..248fc1a 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -124,6 +124,7 @@ def fire_class_handlers(event, d):
 ui_queue = []
 @atexit.register
 def print_ui_queue():
+    global ui_queue
     """If we're exiting before a UI has been spawned, display any queued
     LogRecords to the console."""
     logger = logging.getLogger("BitBake")
@@ -168,6 +169,7 @@ def print_ui_queue():
             logger.removeHandler(stderr)
         else:
             logger.removeHandler(stdout)
+        ui_queue = []
 
 def fire_ui_handlers(event, d):
     global _thread_lock

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list