From f1e89b2bb9f7d2677cd589f808df9594987fb1e0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 19 May 2008 20:41:58 +0000 Subject: bitbake: Sync with upstream git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4504 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- bitbake/lib/bb/parse/parse_py/BBHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/parse') diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index d7bf6d4f3..764def8ec 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py @@ -93,7 +93,7 @@ def handle(fn, d, include = 0): init(d) if ext == ".bbclass": - __classname__ = root + __classname__ = root.replace('-','_') classes.append(__classname__) __inherit_cache = data.getVar('__inherit_cache', d) or [] if not fn in __inherit_cache: @@ -247,7 +247,7 @@ def feeder(lineno, s, fn, root, d): m = __func_start_regexp__.match(s) if m: - __infunc__ = m.group("func") or "__anonymous" + __infunc__ = (m.group("func") or "__anonymous").replace('-','_') key = __infunc__ if data.getVar(key, d): # clean up old version of this piece of metadata, as its -- cgit v1.2.3