summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-15 16:27:27 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:39 +0000
commitf56525836847fbba9096d795f9b396637d1e80a9 (patch)
tree3fd017e7d5dc05b856e498a4072ec7c98cfb1e4e /bitbake/lib
parentb44100eafc76c0535d694a75bd5e195d5d6016b0 (diff)
downloadopenembedded-core-f56525836847fbba9096d795f9b396637d1e80a9.tar.gz
openembedded-core-f56525836847fbba9096d795f9b396637d1e80a9.tar.bz2
openembedded-core-f56525836847fbba9096d795f9b396637d1e80a9.tar.xz
openembedded-core-f56525836847fbba9096d795f9b396637d1e80a9.zip
BBHandler: use os.path in inherit()
(Bitbake rev: 5b85de2c71973ba490b95a5d9ab634635f395142) 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index ac981b834..d1d8657b3 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -74,7 +74,7 @@ def inherit(files, d):
lineno = 0
for file in files:
file = data.expand(file, d)
- if file[0] != "/" and file[-8:] != ".bbclass":
+ if not os.path.isabs(file) and not file.endswith(".bbclass"):
file = os.path.join('classes', '%s.bbclass' % file)
if not file in __inherit_cache: