diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-05 13:01:43 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-05 13:01:43 +0000 |
commit | d9754601470e94d4857e74bfdf08c295fa0c2440 (patch) | |
tree | 33899ee1b67d964ad70f0bee662f3500227be668 /lib/bb/parse/parse_py | |
parent | af77227bcd6a492dbe4d13565701c4a30dd2c2db (diff) | |
download | bitbake-d9754601470e94d4857e74bfdf08c295fa0c2440.tar.gz |
BBHandler: Don't generate the A variable which is time consuming and doesn't appear to get used
Diffstat (limited to 'lib/bb/parse/parse_py')
-rw-r--r-- | lib/bb/parse/parse_py/BBHandler.py | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index 5f8426df2..aaa262d3e 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/lib/bb/parse/parse_py/BBHandler.py @@ -390,25 +390,27 @@ def vars_from_file(mypkg, d): def set_additional_vars(file, d, include): """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}""" - bb.msg.debug(2, bb.msg.domain.Parsing, "BB %s: set_additional_vars" % file) - - src_uri = data.getVar('SRC_URI', d, 1) - if not src_uri: - return - - a = (data.getVar('A', d, 1) or '').split() - - from bb import fetch - try: - ud = fetch.init(src_uri.split(), d) - a += fetch.localpaths(d, ud) - except fetch.NoMethodError: - pass - except bb.MalformedUrl,e: - raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e) - del fetch - - data.setVar('A', " ".join(a), d) + return + # Nothing seems to use this variable + #bb.msg.debug(2, bb.msg.domain.Parsing, "BB %s: set_additional_vars" % file) + + #src_uri = data.getVar('SRC_URI', d, 1) + #if not src_uri: + # return + + #a = (data.getVar('A', d, 1) or '').split() + + #from bb import fetch + #try: + # ud = fetch.init(src_uri.split(), d) + # a += fetch.localpaths(d, ud) + #except fetch.NoMethodError: + # pass + #except bb.MalformedUrl,e: + # raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e) + #del fetch + + #data.setVar('A', " ".join(a), d) # Add us to the handlers list |