summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 2f89350763..c477501d68 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -347,13 +347,9 @@ class Cache(object):
347 347
348 self.checked.add(fn) 348 self.checked.add(fn)
349 349
350 # Pretend we're clean so getVar works
351 self.clean.add(fn)
352
353 # File isn't in depends_cache 350 # File isn't in depends_cache
354 if not fn in self.depends_cache: 351 if not fn in self.depends_cache:
355 logger.debug(2, "Cache: %s is not cached", fn) 352 logger.debug(2, "Cache: %s is not cached", fn)
356 self.remove(fn)
357 return False 353 return False
358 354
359 mtime = bb.parse.cached_mtime_noerror(fn) 355 mtime = bb.parse.cached_mtime_noerror(fn)
@@ -409,6 +405,7 @@ class Cache(object):
409 self.clean.remove(fn) 405 self.clean.remove(fn)
410 return False 406 return False
411 407
408 self.clean.add(fn)
412 return True 409 return True
413 410
414 def remove(self, fn): 411 def remove(self, fn):