]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 15 Nov 2010 15:28:10 +0000 (16:28 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
lib/bb/parse/parse_py/BBHandler.py

index ebc2d5aeb0f8e98bbe93e3c71b22d9468cd747f2..5d11cc4b72394fd806610dbf78d660343a6bbf2a 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: