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>
This commit is contained in:
Chris Larson 2010-11-19 08:03:09 -07:00 committed by Richard Purdie
parent 7c9444e9a5
commit 7846d8db11
1 changed files with 3 additions and 0 deletions

View File

@ -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