summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-25 14:54:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 16:54:04 +0100
commitdaed107ce188c6ae53a3d612de58885f23b7257e (patch)
tree5ae56653c3b71b6c23d3aba01c4b6abafd27b16f /bitbake/lib/bb/cache.py
parent60218d19f7c3651908e352e5e001257fd34d138b (diff)
downloadpoky-daed107ce188c6ae53a3d612de58885f23b7257e.tar.gz
bitbake: show more information for NoProvider errors
"Nothing PROVIDES" errors often come up when a recipe has been skipped for some reason, and therefore it is useful to print out that reason information when showing the error so that the user understands why the error has occurred. Given that we already feed the reason information into the skiplist for various situations (COMMERCIAL_LICENSE, COMPATIBLE_MACHINE etc.) this should now output a useful error message for skipped recipes. Fixes [YOCTO #846], [YOCTO #1127] (Bitbake rev: 6765218430e31c165888f26fbc75023c89a6eab2) 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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 58d5847f15..d805d46d07 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__ = "141" 46__cache_version__ = "142"
47 47
48def getCacheFile(path, filename): 48def getCacheFile(path, filename):
49 return os.path.join(path, filename) 49 return os.path.join(path, filename)
@@ -99,6 +99,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
99 99
100 self.skipreason = self.getvar('__SKIPPED', metadata) 100 self.skipreason = self.getvar('__SKIPPED', metadata)
101 if self.skipreason: 101 if self.skipreason:
102 self.pn = self.getvar('PN', metadata) or bb.parse.BBHandler.vars_from_file(filename,metadata)[0]
102 self.skipped = True 103 self.skipped = True
103 self.provides = self.depvar('PROVIDES', metadata) 104 self.provides = self.depvar('PROVIDES', metadata)
104 self.rprovides = self.depvar('RPROVIDES', metadata) 105 self.rprovides = self.depvar('RPROVIDES', metadata)