From 242a03607d752c228e909a65bf4dfbe8661d5355 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 17 May 2009 06:06:14 +0200 Subject: bitbake: [parser] Kill obtain/localpath from the parser With obtain it was possible to use an existing fetcher to download a bb or config file. In practive no one has used it and it was likely broken in regard to depends_cache... Remove it for now, simplfiy the code. Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/parse_py/BBHandler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py') diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 86fa18ebd2..7707705aaf 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py @@ -29,7 +29,7 @@ import re, bb, os, sys, time, string import bb.fetch, bb.build, bb.utils from bb import data, fetch, methodpool -from ConfHandler import include, localpath, obtain, init +from ConfHandler import include, init from bb.parse import ParseError __func_start_regexp__ = re.compile( r"(((?Ppython)|(?Pfakeroot))\s*)*(?P[\w\.\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" ) @@ -57,8 +57,7 @@ IN_PYTHON_EOF = -9999999999999 __parsed_methods__ = methodpool.get_parsed_dict() def supports(fn, d): - localfn = localpath(fn, d) - return localfn[-3:] == ".bb" or localfn[-8:] == ".bbclass" or localfn[-4:] == ".inc" + return fn[-3:] == ".bb" or fn[-8:] == ".bbclass" or fn[-4:] == ".inc" def inherit(files, d): __inherit_cache = data.getVar('__inherit_cache', d) or [] @@ -146,7 +145,6 @@ def handle(fn, d, include = 0): else: oldfile = None - fn = obtain(fn, d) bbpath = (data.getVar('BBPATH', d, 1) or '').split(':') if not os.path.isabs(fn): f = None -- cgit v1.2.3-54-g00ecf