From 7846d8db11809c82b9ed03aa65bb1aad818b238f Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 19 Nov 2010 08:03:09 -0700 Subject: cache: don't add info to cache if cache is disabled (Bitbake rev: f12bb303f3d86a68d0b3dda1112dd654b9251704) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bitbake/lib/bb/cache.py') 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 -- cgit v1.2.3-54-g00ecf