summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-01-03 20:57:21 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 15:00:15 +0000
commitc9d4807662494aa313c9b5b3bb5de6f8a25d32d3 (patch)
tree15f806db2001624b7dab4b6ecf0a8539a0e0d5c6 /bitbake/lib
parent83f0b79f43f2df35ac6fa9ba11973491e6a52b65 (diff)
downloadopenembedded-core-c9d4807662494aa313c9b5b3bb5de6f8a25d32d3.tar.gz
openembedded-core-c9d4807662494aa313c9b5b3bb5de6f8a25d32d3.tar.bz2
openembedded-core-c9d4807662494aa313c9b5b3bb5de6f8a25d32d3.tar.xz
openembedded-core-c9d4807662494aa313c9b5b3bb5de6f8a25d32d3.zip
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index d1d8657b3..81554b943 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -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":