diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-11 22:42:15 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-11 22:42:15 +0000 |
commit | 18026165c3086b77253663fb12d5b7470de8f2a1 (patch) | |
tree | c07368e40fa2d1ae1c39947b66474b45dd672130 /bitbake/lib/bb/parse | |
parent | 0197eb2d870263b983ba217aca69ffe9f7708eb5 (diff) | |
download | openembedded-core-18026165c3086b77253663fb12d5b7470de8f2a1.tar.gz openembedded-core-18026165c3086b77253663fb12d5b7470de8f2a1.tar.bz2 openembedded-core-18026165c3086b77253663fb12d5b7470de8f2a1.tar.xz openembedded-core-18026165c3086b77253663fb12d5b7470de8f2a1.zip |
bitbake: Sync with upstream
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2480 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 40 | ||||
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 8 |
2 files changed, 25 insertions, 23 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 1afbc6f29..aaa262d3e 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py @@ -391,26 +391,26 @@ def set_additional_vars(file, d, include): """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}""" return - -# 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) + # 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 diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index 6a44e28e9..6311e7690 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py @@ -70,14 +70,14 @@ def obtain(fn, data): return localfn bb.mkdirhier(dldir) try: - ud = bb.fetch.init([fn], data, False) + bb.fetch.init([fn], data) except bb.fetch.NoMethodError: (type, value, traceback) = sys.exc_info() bb.msg.debug(1, bb.msg.domain.Parsing, "obtain: no method: %s" % value) return localfn try: - bb.fetch.go(data, ud) + bb.fetch.go(data) except bb.fetch.MissingParameterError: (type, value, traceback) = sys.exc_info() bb.msg.debug(1, bb.msg.domain.Parsing, "obtain: missing parameters: %s" % value) @@ -181,7 +181,9 @@ def feeder(lineno, s, fn, data): if val == None: val = groupd["value"] elif "colon" in groupd and groupd["colon"] != None: - val = bb.data.expand(groupd["value"], data) + e = data.createCopy() + bb.data.update_data(e) + val = bb.data.expand(groupd["value"], e) elif "append" in groupd and groupd["append"] != None: val = "%s %s" % ((getFunc(groupd, key, data) or ""), groupd["value"]) elif "prepend" in groupd and groupd["prepend"] != None: |