summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-27 09:10:38 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-27 09:10:38 +0000
commit1e95d39948bff9d890bcf275cadbf98ecffec512 (patch)
tree133af646d089e7c2a804a7e479c53d1483b16457 /bitbake
parent9f10a98f448568f9e728bf827320def8732200eb (diff)
downloadopenembedded-core-1e95d39948bff9d890bcf275cadbf98ecffec512.tar.gz
openembedded-core-1e95d39948bff9d890bcf275cadbf98ecffec512.tar.bz2
openembedded-core-1e95d39948bff9d890bcf275cadbf98ecffec512.tar.xz
openembedded-core-1e95d39948bff9d890bcf275cadbf98ecffec512.zip
Confhandler.py: Add cleanup from bitbake trunk
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@962 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
index 4bc2bbc2b..6c0a8ccea 100644
--- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
@@ -117,14 +117,11 @@ def handle(fn, data, include = 0):
oldfile = bb.data.getVar('FILE', data)
fn = obtain(fn, data)
- bbpath = []
if not os.path.isabs(fn):
f = None
- vbbpath = bb.data.getVar("BBPATH", data)
- if vbbpath:
- bbpath += vbbpath.split(":")
- for p in bbpath:
- currname = os.path.join(bb.data.expand(p, data), fn)
+ bbpath = bb.data.getVar("BBPATH", data, 1) or []
+ for p in bbpath.split(":"):
+ currname = os.path.join(p, fn)
if os.access(currname, os.R_OK):
f = open(currname, 'r')
abs_fn = currname