From 3877abf437ff67a010b3e14c28da7f2c42bbd332 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 11 Sep 2006 11:28:08 +0000 Subject: [PATCH] cache.py: The cache doesn't really need to know about any progress callback - adjust logging accordingly --- lib/bb/cache.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/bb/cache.py b/lib/bb/cache.py index d72f510b..e4985e48 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -58,14 +58,12 @@ class Cache: if self.cachedir in [None, '']: self.has_cache = False - if cooker.cb is not None: - bb.msg.note(1, bb.msg.domain.Cache, "Not using a cache. Set CACHE = to enable.") + bb.msg.note(1, bb.msg.domain.Cache, "Not using a cache. Set CACHE = to enable.") else: self.has_cache = True self.cachefile = os.path.join(self.cachedir,"bb_cache.dat") - if cooker.cb is not None: - bb.msg.note(1, bb.msg.domain.Cache, "Using cache in '%s'" % self.cachedir) + bb.msg.debug(1, bb.msg.domain.Cache, "Using cache in '%s'" % self.cachedir) try: os.stat( self.cachedir ) except OSError: -- 2.20.1