Only mark fn as clean if it is clean.
This saves us from removing (prematurely added) fn from our clean set
and saves me a few percent of runtime (and misleading debugging output
from remove()).
(Bitbake rev:
884365228fcaac07421ac1440d4946693fb628c5)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
self.checked.add(fn)
- # Pretend we're clean so getVar works
- self.clean.add(fn)
-
# File isn't in depends_cache
if not fn in self.depends_cache:
logger.debug(2, "Cache: %s is not cached", fn)
- self.remove(fn)
return False
mtime = bb.parse.cached_mtime_noerror(fn)
self.clean.remove(fn)
return False
+ self.clean.add(fn)
return True
def remove(self, fn):