]> code.ossystems Code Review - openembedded-core.git/commitdiff
cache: don't add info to cache if cache is disabled
authorChris Larson <chris_larson@mentor.com>
Fri, 19 Nov 2010 15:03:09 +0000 (08:03 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:43 +0000 (14:46 +0000)
(Bitbake rev: f12bb303f3d86a68d0b3dda1112dd654b9251704)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cache.py

index 3edd80ec3b60b6dd3637536b29342f3beef5b341..5adce594f08e345cd157b14cecbf905fb7dd0067 100644 (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