summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-06-01 15:37:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-09 18:12:51 +0100
commit81e2f52fb8e775ff230f1b96cf393f7c53bb23d0 (patch)
tree46b6f50061054665470fcbd3969327b856b4f890 /bitbake/lib/bb/parse/ast.py
parentc9503d59ea16689160a6b957888cb8e0cf4099b1 (diff)
downloadpoky-81e2f52fb8e775ff230f1b96cf393f7c53bb23d0.tar.gz
track skipped packages
Add skiplist to cooker that allows access to the list of packages skipped via SkipPackage (this includes COMPATIBLE_MACHINE, INCOMPATIBLE_LICENSE, etc.) This can be used to enhance error reporting. (From Poky rev: 6c12b7b1099c77b87d4431d55e949cf7c5f52ded) (Bitbake rev: 7d2363f35350be27a33f568c23eb07fcd3d27e53) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
-rw-r--r--bitbake/lib/bb/parse/ast.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index b296562450..722d542ed6 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -376,8 +376,8 @@ def multi_finalize(fn, d):
376 try: 376 try:
377 if not onlyfinalise or "default" in onlyfinalise: 377 if not onlyfinalise or "default" in onlyfinalise:
378 finalize(fn, d) 378 finalize(fn, d)
379 except bb.parse.SkipPackage: 379 except bb.parse.SkipPackage as e:
380 bb.data.setVar("__SKIPPED", True, d) 380 bb.data.setVar("__SKIPPED", e.args[0], d)
381 datastores = {"": safe_d} 381 datastores = {"": safe_d}
382 382
383 versions = (d.getVar("BBVERSIONS", True) or "").split() 383 versions = (d.getVar("BBVERSIONS", True) or "").split()
@@ -419,8 +419,8 @@ def multi_finalize(fn, d):
419 verfunc(pv, d, safe_d) 419 verfunc(pv, d, safe_d)
420 try: 420 try:
421 finalize(fn, d) 421 finalize(fn, d)
422 except bb.parse.SkipPackage: 422 except bb.parse.SkipPackage as e:
423 bb.data.setVar("__SKIPPED", True, d) 423 bb.data.setVar("__SKIPPED", e.args[0], d)
424 424
425 _create_variants(datastores, versions, verfunc) 425 _create_variants(datastores, versions, verfunc)
426 426
@@ -439,8 +439,8 @@ def multi_finalize(fn, d):
439 try: 439 try:
440 if not onlyfinalise or variant in onlyfinalise: 440 if not onlyfinalise or variant in onlyfinalise:
441 finalize(fn, variant_d, variant) 441 finalize(fn, variant_d, variant)
442 except bb.parse.SkipPackage: 442 except bb.parse.SkipPackage as e:
443 bb.data.setVar("__SKIPPED", True, variant_d) 443 bb.data.setVar("__SKIPPED", e.args[0], variant_d)
444 444
445 if len(datastores) > 1: 445 if len(datastores) > 1:
446 variants = filter(None, datastores.iterkeys()) 446 variants = filter(None, datastores.iterkeys())