1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

bitbake: compat, event: use OrderedDict from py2.7 for the event handlers

This ensures that our event handlers get run in registration order, making the
behavior more deterministic. I pulled in the python2.7 OrderedDict to avoid
essentially reimplementing a version of it ourselves, figuring we can drop it
when we bump our required python version next.

(Bitbake rev: 44aa0b0537d3fbd1272015e7677948f84d8c0607)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson
2012-09-10 22:23:19 +00:00
committed by Richard Purdie
parent f57392590a
commit 749f4f6744
2 changed files with 215 additions and 1 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ import logging
import atexit
import traceback
import bb.utils
import bb.compat
# This is the pid for which we should generate the event. This is set when
# the runqueue forks off.
@@ -53,7 +54,7 @@ Registered = 10
AlreadyRegistered = 14
# Internal
_handlers = {}
_handlers = bb.compat.OrderedDict()
_ui_handlers = {}
_ui_handler_seq = 0