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 authored and Richard Purdie committed 2011-01-04 14:46:43 +00:00
1 parent 7c9444e9a5
commit 7846d8db11
1 file changed
+3
+3
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