From d278633c0bebe89ab2490856f57540fe263bb545 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 22 Mar 2006 13:48:02 +0000 Subject: bin/bitbake: -Do not add handlers again. It is 'fast' enough to iterate over them in the BBHandler do not add them in bitbake again. This temporarily breaks the cache - which will be fixed shortly lib/bb/event.py: -Have a data structure that operates faster on lookups -Change register/remove to take a 'name' parameter lib/bb/parse/parse_py/BBHandler.py: -Update to the new event.register syntax --- lib/bb/parse/parse_py/BBHandler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/bb/parse') diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index 17941d9fb..92ff6c5b7 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/lib/bb/parse/parse_py/BBHandler.py @@ -167,7 +167,7 @@ def handle(fn, d, include = 0): for var in data.keys(d): if data.getVarFlag(var, 'handler', d): - bb.event.register(data.getVar(var, d)) + bb.event.register(var, data.getVar(var, d)) continue if not data.getVarFlag(var, 'task', d): @@ -225,7 +225,6 @@ def feeder(lineno, s, fn, root, d): bb.utils.better_exec(comp, __builtins__, text, fn) funcs = data.getVar('__functions__', d) or "" data.setVar('__functions__', "%s\n%s" % (funcs, text), d) - __body__ = [] __inpython__ = False -- cgit 1.2.3-korg