summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/methodpool.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/methodpool.py')
-rw-r--r--bitbake/lib/bb/methodpool.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/bitbake/lib/bb/methodpool.py b/bitbake/lib/bb/methodpool.py
index 3b8e5c1137..2fb5d96a3f 100644
--- a/bitbake/lib/bb/methodpool.py
+++ b/bitbake/lib/bb/methodpool.py
@@ -33,9 +33,7 @@
33from bb.utils import better_compile, better_exec 33from bb.utils import better_compile, better_exec
34from bb import error 34from bb import error
35 35
36# A dict of modules we have handled 36# A dict of function names we have seen
37# it is the number of .bbclasses + x in size
38_parsed_methods = { }
39_parsed_fns = { } 37_parsed_fns = { }
40 38
41def insert_method(modulename, code, fn): 39def insert_method(modulename, code, fn):
@@ -56,15 +54,18 @@ def insert_method(modulename, code, fn):
56 else: 54 else:
57 _parsed_fns[name] = modulename 55 _parsed_fns[name] = modulename
58 56
57# A dict of modules the parser has finished with
58_parsed_methods = {}
59
59def parsed_module(modulename): 60def parsed_module(modulename):
60 """ 61 """
61 Inform me file xyz was parsed 62 Has module been parsed?
62 """ 63 """
63 return modulename in _parsed_methods 64 return modulename in _parsed_methods
64 65
65 66def set_parsed_module(modulename):
66def get_parsed_dict():
67 """ 67 """
68 shortcut 68 Set module as parsed
69 """ 69 """
70 return _parsed_methods 70 _parsed_methods[modulename] = True
71