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: fetch.init(src_uri.split(), d) except fetch.NoMethodError: pass except bb.MalformedUrl,e: raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e)
def set_additional_vars(the_data): """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}""" src_uri = bb.data.getVar('SRC_URI', the_data) if not src_uri: return src_uri = bb.data.expand(src_uri, the_data) a = bb.data.getVar('A', the_data) if a: a = bb.data.expand(a, the_data).split() else: a = [] from bb import fetch try: fetch.init(src_uri.split(), the_data) except fetch.NoMethodError: pass except bb.MalformedUrl,e: raise bb.parse.ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e)
def set_additional_vars(file, d, include): """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}""" debug(2,"BB %s: set_additional_vars" % file) src_uri = data.getVar('SRC_URI', d) if not src_uri: return src_uri = data.expand(src_uri, d) a = data.getVar('A', d) if a: a = data.expand(a, d).split() else: a = [] from bb import fetch try: fetch.init(src_uri.split(), d) except fetch.NoMethodError: pass except bb.MalformedUrl,e: raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e)