Make portdbapi.flush_cache() consistent with vardbapi.flush_cache().
authorZac Medico <zmedico@gentoo.org>
Thu, 28 Dec 2006 13:14:34 +0000 (13:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 28 Dec 2006 13:14:34 +0000 (13:14 -0000)
svn path=/main/trunk/; revision=5403

pym/portage.py

index d7dc3b5613d305380ad835e544e2f84964656366..16d99a955dee8e97a897bdcd1035ed38d9b21183 100644 (file)
@@ -5394,7 +5394,6 @@ class portdbapi(dbapi):
                self.eclassdb = eclass_cache.cache(self.porttree_root,
                        overlays=self.mysettings["PORTDIR_OVERLAY"].split())
 
-               self.metadb       = {}
                self.metadbmodule = self.mysettings.load_best_module("portdbapi.metadbmodule")
 
                #if the portdbapi is "frozen", then we assume that we can cache everything (that no updates to it are happening)
@@ -5456,8 +5455,8 @@ class portdbapi(dbapi):
                self.auxdb.clear()
 
        def flush_cache(self):
-               self.metadb = {}
-               self.auxdb  = {}
+               for x in self.auxdb.values():
+                       x.sync()
 
        def finddigest(self,mycpv):
                try: