]> code.ossystems Code Review - openembedded-core.git/commitdiff
BBHandler: use os.path in inherit()
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 15 Nov 2010 15:27:27 +0000 (16:27 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:39 +0000 (14:46 +0000)
(Bitbake rev: 5b85de2c71973ba490b95a5d9ab634635f395142)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/BBHandler.py

index ac981b83469dff6e8f884dc49eed224c78341b81..d1d8657b386598a306e1c2d4e2e753474670f3b9 100644 (file)
@@ -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: