summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-04 19:57:10 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-04 19:57:10 +0000
commit51df8408c139e99e5d4f7fabe235eee4bd05d3fd (patch)
treeed0634f3b2594102d6798b794f2b9393751600ca
parentc0e5fe61b4bab56a919449f0b434547aca52c925 (diff)
downloadpoky-51df8408c139e99e5d4f7fabe235eee4bd05d3fd.tar.gz
bitbake BBHandler: Disable creation of A variable
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2360 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py32
1 files changed, 17 insertions, 15 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 5f8426df24..1afbc6f294 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -390,25 +390,27 @@ def vars_from_file(mypkg, d):
390def set_additional_vars(file, d, include): 390def set_additional_vars(file, d, include):
391 """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}""" 391 """Deduce rest of variables, e.g. ${A} out of ${SRC_URI}"""
392 392
393 bb.msg.debug(2, bb.msg.domain.Parsing, "BB %s: set_additional_vars" % file) 393 return
394 394
395 src_uri = data.getVar('SRC_URI', d, 1) 395# bb.msg.debug(2, bb.msg.domain.Parsing, "BB %s: set_additional_vars" % file)
396 if not src_uri: 396
397 return 397# src_uri = data.getVar('SRC_URI', d, 1)
398# if not src_uri:
399# return
398 400
399 a = (data.getVar('A', d, 1) or '').split() 401# a = (data.getVar('A', d, 1) or '').split()
400 402
401 from bb import fetch 403# from bb import fetch
402 try: 404# try:
403 ud = fetch.init(src_uri.split(), d) 405# ud = fetch.init(src_uri.split(), d)
404 a += fetch.localpaths(d, ud) 406# a += fetch.localpaths(d, ud)
405 except fetch.NoMethodError: 407# except fetch.NoMethodError:
406 pass 408# pass
407 except bb.MalformedUrl,e: 409# except bb.MalformedUrl,e:
408 raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e) 410# raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e)
409 del fetch 411# del fetch
410 412
411 data.setVar('A', " ".join(a), d) 413# data.setVar('A', " ".join(a), d)
412 414
413 415
414# Add us to the handlers list 416# Add us to the handlers list