From: Zac Medico Date: Sat, 11 Apr 2009 02:43:35 +0000 (-0000) Subject: Show an error message when deletion of stale cache fails. X-Git-Tag: v2.2_rc29~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=903a9cb2d1b5ae836a06867a533ab8708c5e5245;p=portage.git Show an error message when deletion of stale cache fails. svn path=/main/trunk/; revision=13315 --- diff --git a/bin/egencache b/bin/egencache index 89708ad71..4103651d5 100755 --- a/bin/egencache +++ b/bin/egencache @@ -244,8 +244,11 @@ class GenCache(object): del trg_cache[k] except KeyError: pass - except CacheError: + except CacheError, ce: self.returncode |= 1 + writemsg_level( + "%s deleting stale cache: %s\n" % (k, ce), + level=logging.ERROR, noiselevel=-1) if not trg_cache.autocommits: try: