From: Chris Larson Date: Fri, 19 Nov 2010 15:03:09 +0000 (-0700) Subject: cache: don't add info to cache if cache is disabled X-Git-Tag: 2011-1~3114 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=7846d8db11809c82b9ed03aa65bb1aad818b238f;p=openembedded-core.git cache: don't add info to cache if cache is disabled (Bitbake rev: f12bb303f3d86a68d0b3dda1112dd654b9251704) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- 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): 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