entropy.core.SystemSettings: handle EntropyCacher instance to make sure

to have flushed all the cache queue before clearing the related on-disk
files.
This commit is contained in:
Fabio Erculiani
2009-04-07 12:18:19 +02:00
parent e819160698
commit d33cfe68e7

View File

@@ -130,6 +130,8 @@ class SystemSettings(Singleton):
"""
from entropy.cache import EntropyCacher
self.__cacher = EntropyCacher()
self.__data = {}
self.__is_destroyed = False
@@ -1444,6 +1446,7 @@ class SystemSettings(Singleton):
"""
Internal method, go away!
"""
self.__cacher.sync(wait = True)
self._clear_dump_cache(etpCache['world_available'])
self._clear_dump_cache(etpCache['world_update'])
self._clear_dump_cache(etpCache['check_package_update'])