use new discard() method of EntropyCacher

This commit is contained in:
Fabio Erculiani
2009-05-29 17:08:17 +02:00
parent 8c9d574765
commit d5f66f3aca
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class CacheMixin:
)
def clear_dump_cache(self, dump_name, skip = []):
self.Cacher.sync(wait = True)
self.Cacher.discard()
self.SystemSettings._clear_dump_cache(dump_name, skip = skip)
def update_ugc_cache(self, repository):
@@ -1160,7 +1160,7 @@ class MiscMixin:
@type branch basestring
@return None
"""
self.Cacher.sync(wait = True)
self.Cacher.discard()
self.Cacher.stop()
self.purge_cache(showProgress = False)
self.close_all_repositories()
@@ -1522,7 +1522,7 @@ class MatchMixin:
if not callable(f):
raise IncorrectParameter('IncorrectParameter: %s: %s' % (_("not a valid method"),method,) )
self.Cacher.sync(wait = True)
self.Cacher.discard()
done = f(match, dry_run)
if done and not dry_run:
self.SystemSettings.clear()
+1 -1
View File
@@ -1262,7 +1262,7 @@ class SystemSettings(Singleton):
"""
Internal method, go away!
"""
self.__cacher.sync(wait = True)
self.__cacher.discard()
self._clear_dump_cache(etpCache['world_available'])
self._clear_dump_cache(etpCache['world_update'])
self._clear_dump_cache(etpCache['check_package_update'])