diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-11-15 16:27:27 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:39 +0000 |
commit | f56525836847fbba9096d795f9b396637d1e80a9 (patch) | |
tree | 3fd017e7d5dc05b856e498a4072ec7c98cfb1e4e /bitbake/lib/bb/parse | |
parent | b44100eafc76c0535d694a75bd5e195d5d6016b0 (diff) | |
download | poky-f56525836847fbba9096d795f9b396637d1e80a9.tar.gz |
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/bb/parse')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 2 |
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 ac981b8346..d1d8657b38 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): | |||
74 | lineno = 0 | 74 | lineno = 0 |
75 | for file in files: | 75 | for file in files: |
76 | file = data.expand(file, d) | 76 | file = data.expand(file, d) |
77 | if file[0] != "/" and file[-8:] != ".bbclass": | 77 | if not os.path.isabs(file) and not file.endswith(".bbclass"): |
78 | file = os.path.join('classes', '%s.bbclass' % file) | 78 | file = os.path.join('classes', '%s.bbclass' % file) |
79 | 79 | ||
80 | if not file in __inherit_cache: | 80 | if not file in __inherit_cache: |