summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.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/cache.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/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 5b8e3ee8f4..a0df93eb41 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -43,7 +43,7 @@ except ImportError:
43 logger.info("Importing cPickle failed. " 43 logger.info("Importing cPickle failed. "
44 "Falling back to a very slow implementation.") 44 "Falling back to a very slow implementation.")
45 45
46__cache_version__ = "139" 46__cache_version__ = "140"
47 47
48def getCacheFile(path, filename): 48def getCacheFile(path, filename):
49 return os.path.join(path, filename) 49 return os.path.join(path, filename)
@@ -96,8 +96,11 @@ class CoreRecipeInfo(RecipeInfoCommon):
96 self.variants = self.listvar('__VARIANTS', metadata) + [''] 96 self.variants = self.listvar('__VARIANTS', metadata) + ['']
97 self.nocache = self.getvar('__BB_DONT_CACHE', metadata) 97 self.nocache = self.getvar('__BB_DONT_CACHE', metadata)
98 98
99 if self.getvar('__SKIPPED', metadata): 99 self.skipreason = self.getvar('__SKIPPED', metadata)
100 if self.skipreason:
100 self.skipped = True 101 self.skipped = True
102 self.provides = self.depvar('PROVIDES', metadata)
103 self.rprovides = self.depvar('RPROVIDES', metadata)
101 return 104 return
102 105
103 self.tasks = metadata.getVar('__BBTASKS', False) 106 self.tasks = metadata.getVar('__BBTASKS', False)
@@ -446,7 +449,7 @@ class Cache(object):
446 cached, infos = self.load(fn, appends, cfgData) 449 cached, infos = self.load(fn, appends, cfgData)
447 for virtualfn, info_array in infos: 450 for virtualfn, info_array in infos:
448 if info_array[0].skipped: 451 if info_array[0].skipped:
449 logger.debug(1, "Skipping %s", virtualfn) 452 logger.debug(1, "Skipping %s: %s", virtualfn, info_array[0].skipreason)
450 skipped += 1 453 skipped += 1
451 else: 454 else:
452 self.add_info(virtualfn, info_array, cacheData, not cached) 455 self.add_info(virtualfn, info_array, cacheData, not cached)