BBHandler: use basename directly in handler()

(Bitbake rev: 739a8ce6ac688061afd55cd3c980d0e9e45c5930)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Bernhard Reutner-Fischer 2011-01-03 20:57:21 +01:00 committed by Richard Purdie
parent 83f0b79f43
commit c9d4807662
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ def handle(fn, d, include):
else:
logger.debug(2, "BB %s: handle(data, include)", fn)
(root, ext) = os.path.splitext(os.path.basename(fn))
base_name = "%s%s" % (root, ext)
base_name = os.path.basename(fn)
(root, ext) = os.path.splitext(base_name)
init(d)
if ext == ".bbclass":