mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bb.cache: only log if the respective action was taken
This avoids alot of misleading log-messages like "Removing FOO from cache" if FOO was not in the cache and as such is not a removal candidate. (Bitbake rev: de34a403e206867e09410ad4925c7b9cff04fee6) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
7e1b709231
commit
1d8a9b8856
@@ -298,10 +298,12 @@ class Cache:
|
|||||||
if invalid:
|
if invalid:
|
||||||
for cls in (multi or "").split():
|
for cls in (multi or "").split():
|
||||||
virtualfn = self.realfn2virtual(fn, cls)
|
virtualfn = self.realfn2virtual(fn, cls)
|
||||||
logger.debug(2, "Cache: Removing %s from cache", virtualfn)
|
if virtualfn in self.clean:
|
||||||
del self.clean[virtualfn]
|
logger.debug(2, "Cache: Removing %s from cache", virtualfn)
|
||||||
logger.debug(2, "Cache: removing %s from cache", fn)
|
del self.clean[virtualfn]
|
||||||
del self.clean[fn]
|
if fn in self.clean:
|
||||||
|
logger.debug(2, "Cache: Marking %s as not clean", fn)
|
||||||
|
del self.clean[fn]
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
@@ -311,10 +313,11 @@ class Cache:
|
|||||||
Remove a fn from the cache
|
Remove a fn from the cache
|
||||||
Called from the parser in error cases
|
Called from the parser in error cases
|
||||||
"""
|
"""
|
||||||
logger.debug(1, "Removing %s from cache", fn)
|
|
||||||
if fn in self.depends_cache:
|
if fn in self.depends_cache:
|
||||||
|
logger.debug(1, "Removing %s from cache", fn)
|
||||||
del self.depends_cache[fn]
|
del self.depends_cache[fn]
|
||||||
if fn in self.clean:
|
if fn in self.clean:
|
||||||
|
logger.debug(1, "Marking %s as unclean", fn)
|
||||||
del self.clean[fn]
|
del self.clean[fn]
|
||||||
|
|
||||||
def sync(self):
|
def sync(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user