hide caching

This commit is contained in:
Faik Uygur
2009-03-05 06:34:56 +00:00
parent 08f268cc33
commit e33d761ab7
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -221,6 +221,3 @@ class InstallDB(lazydb.LazyDB):
return os.path.join(ctx.config.packages_dir(), "%s-%s" % (package, self.installed_db[package]))
raise Exception(_('Package %s is not installed') % package)
def close(self):
self.cache_save()
+3
View File
@@ -46,6 +46,9 @@ class LazyDB(Singleton):
if os.path.exists(cache_file):
os.unlink(cache_file)
def close(self):
self.cache_save()
def __getattr__(self, attr):
if not attr == "__setstate__" and not self.initialized:
start = time.time()