summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-19 08:03:09 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:43 +0000
commit7846d8db11809c82b9ed03aa65bb1aad818b238f (patch)
tree167ef6ed9b4158f8549f7807e007c1c389412e72
parent7c9444e9a58438058ec577bd8c2e51820c98072d (diff)
downloadpoky-7846d8db11809c82b9ed03aa65bb1aad818b238f.tar.gz
cache: don't add info to cache if cache is disabled
(Bitbake rev: f12bb303f3d86a68d0b3dda1112dd654b9251704) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-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 3edd80ec3b..5adce594f0 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -419,6 +419,9 @@ class Cache(object):
419 419
420 def add_info(self, filename, info, cacheData, parsed=None): 420 def add_info(self, filename, info, cacheData, parsed=None):
421 cacheData.add_from_recipeinfo(filename, info) 421 cacheData.add_from_recipeinfo(filename, info)
422 if not self.has_cache:
423 return
424
422 if 'SRCREVINACTION' not in info.pv and not info.nocache: 425 if 'SRCREVINACTION' not in info.pv and not info.nocache:
423 if parsed: 426 if parsed:
424 self.cacheclean = False 427 self.cacheclean = False