From 749f4f67444c7be7fe7aac0189776fd540975e09 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 10 Sep 2012 22:23:19 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/event.py') diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index ab62d4d055..7ee28fcfcb 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py @@ -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 -- cgit v1.2.3-54-g00ecf