summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
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 /bitbake/lib/bb
parent7c9444e9a58438058ec577bd8c2e51820c98072d (diff)
downloadopenembedded-core-7846d8db11809c82b9ed03aa65bb1aad818b238f.tar.gz
openembedded-core-7846d8db11809c82b9ed03aa65bb1aad818b238f.tar.bz2
openembedded-core-7846d8db11809c82b9ed03aa65bb1aad818b238f.tar.xz
openembedded-core-7846d8db11809c82b9ed03aa65bb1aad818b238f.zip
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>
Diffstat (limited to 'bitbake/lib/bb')
-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 3edd80ec3..5adce594f 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -419,6 +419,9 @@ class Cache(object):
def add_info(self, filename, info, cacheData, parsed=None):
cacheData.add_from_recipeinfo(filename, info)
+ if not self.has_cache:
+ return
+
if 'SRCREVINACTION' not in info.pv and not info.nocache:
if parsed:
self.cacheclean = False