From d33cfe68e7c1f8aa084e88deeff0c4bd8710a7b1 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 7 Apr 2009 12:18:19 +0200 Subject: [PATCH] entropy.core.SystemSettings: handle EntropyCacher instance to make sure to have flushed all the cache queue before clearing the related on-disk files. --- libraries/entropy/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/entropy/core.py b/libraries/entropy/core.py index 2aafc2454..d2e8e9050 100644 --- a/libraries/entropy/core.py +++ b/libraries/entropy/core.py @@ -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'])