summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-06-27 17:43:44 +0000
committerPhil Blundell <philb@gnu.org>2004-06-27 17:43:44 +0000
commit0dd3dbe4d65ab8e4b6f99ff75f10ba917f465309 (patch)
tree22a080aac1052cf6ba7982eddc00dfd5f471549b /bin
parent55f4ec5e0b9d7c2e4c9caf6cde11e9dba4bdc4ee (diff)
downloadbitbake-0dd3dbe4d65ab8e4b6f99ff75f10ba917f465309.tar.gz
store list of defined functions as "__functions" in metadata
Diffstat (limited to 'bin')
-rw-r--r--bin/oe/parse/OEHandler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/oe/parse/OEHandler.py b/bin/oe/parse/OEHandler.py
index 6f421a920..bee257cc4 100644
--- a/bin/oe/parse/OEHandler.py
+++ b/bin/oe/parse/OEHandler.py
@@ -17,7 +17,7 @@ __inherit_regexp__ = re.compile( r"inherit\s+(.+)" )
__export_func_regexp__ = re.compile( r"EXPORT_FUNCTIONS\s+(.+)" )
__addtask_regexp__ = re.compile("addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*")
__addhandler_regexp__ = re.compile( r"addhandler\s+(.+)" )
-__def_regexp__ = re.compile( r"def\s+.*:" )
+__def_regexp__ = re.compile( r"def\s+(\w+).*:" )
__python_func_regexp__ = re.compile( r"\s+.*" )
__word__ = re.compile(r"\S+")
@@ -219,6 +219,9 @@ def feeder(lineno, s, fn, d):
m = __def_regexp__.match(s)
if m:
+ funcname = m.group(1)
+ funcs = data.getVar('__functions', d) or ""
+ data.setVar('__functions', "%s %s" % (funcs, funcname), d)
__body__.append(s)
__inpython__ = True
return