diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-06-01 15:37:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-09 18:12:51 +0100 |
commit | 81e2f52fb8e775ff230f1b96cf393f7c53bb23d0 (patch) | |
tree | 46b6f50061054665470fcbd3969327b856b4f890 /bitbake/lib/bb/cooker.py | |
parent | c9503d59ea16689160a6b957888cb8e0cf4099b1 (diff) | |
download | poky-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/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 5bdf90ffa7..a64ee52c2c 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -55,6 +55,20 @@ class NothingToBuild(Exception): | |||
55 | class state: | 55 | class state: |
56 | initial, parsing, running, shutdown, stop = range(5) | 56 | initial, parsing, running, shutdown, stop = range(5) |
57 | 57 | ||
58 | |||
59 | class SkippedPackage: | ||
60 | def __init__(self, info = None, reason = None): | ||
61 | self.skipreason = None | ||
62 | self.provides = None | ||
63 | self.rprovides = None | ||
64 | |||
65 | if info: | ||
66 | self.skipreason = info.skipreason | ||
67 | self.provides = info.provides | ||
68 | self.rprovides = info.rprovides | ||
69 | elif reason: | ||
70 | self.skipreason = reason | ||
71 | |||
58 | #============================================================================# | 72 | #============================================================================# |
59 | # BBCooker | 73 | # BBCooker |
60 | #============================================================================# | 74 | #============================================================================# |
@@ -66,6 +80,7 @@ class BBCooker: | |||
66 | def __init__(self, configuration, server_registration_cb): | 80 | def __init__(self, configuration, server_registration_cb): |
67 | self.status = None | 81 | self.status = None |
68 | self.appendlist = {} | 82 | self.appendlist = {} |
83 | self.skiplist = {} | ||
69 | 84 | ||
70 | self.server_registration_cb = server_registration_cb | 85 | self.server_registration_cb = server_registration_cb |
71 | 86 | ||
@@ -1261,6 +1276,7 @@ class CookerParser(object): | |||
1261 | for virtualfn, info_array in result: | 1276 | for virtualfn, info_array in result: |
1262 | if info_array[0].skipped: | 1277 | if info_array[0].skipped: |
1263 | self.skipped += 1 | 1278 | self.skipped += 1 |
1279 | self.cooker.skiplist[virtualfn] = SkippedPackage(info_array[0]) | ||
1264 | self.bb_cache.add_info(virtualfn, info_array, self.cooker.status, | 1280 | self.bb_cache.add_info(virtualfn, info_array, self.cooker.status, |
1265 | parsed=parsed) | 1281 | parsed=parsed) |
1266 | return True | 1282 | return True |