summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-09-03 22:57:26 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-03 22:57:26 +0100
commitbc0b233c02d6ffa89633551fd1b77a7a55df6a03 (patch)
treea4aba38babf89d58b9b59cb2f0b5d939228d7840 /bitbake
parente425d3c13e97c559e2e4aa7b22fc34b7f06c13a1 (diff)
downloadpoky-bc0b233c02d6ffa89633551fd1b77a7a55df6a03.tar.gz
bitbake cache: Add code to catch a nasty cache corruption issue to aid in tracking it down
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 272619386a..989dfc4207 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -331,6 +331,9 @@ class Cache:
331 if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']: 331 if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']:
332 bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn) 332 bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)
333 del cache_data[fn] 333 del cache_data[fn]
334 elif 'PV' in self.depends_cache[fn] and 'SRCREVINACTION' in self.depends_cache[fn]['PV']:
335 bb.msg.error(bb.msg.domain.Cache, "Not caching %s as it had SRCREVINACTION in PV - need to trace this bug" % fn)
336 del cache_data[fn]
334 337
335 p = pickle.Pickler(file(self.cachefile, "wb" ), -1 ) 338 p = pickle.Pickler(file(self.cachefile, "wb" ), -1 )
336 p.dump([cache_data, version_data]) 339 p.dump([cache_data, version_data])