aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/parse
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-03-22 13:48:02 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-03-22 13:48:02 +0000
commitd278633c0bebe89ab2490856f57540fe263bb545 (patch)
treec420bbcf1b13676e4e667a996de75df5bf2102bf /lib/bb/parse
parente745c0f774837f15e908aca66c175df800030aa7 (diff)
downloadbitbake-d278633c0bebe89ab2490856f57540fe263bb545.tar.gz
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
Diffstat (limited to 'lib/bb/parse')
-rw-r--r--lib/bb/parse/parse_py/BBHandler.py3
1 files changed, 1 insertions, 2 deletions
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