summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-28 13:14:34 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-28 13:14:34 +0000
commite90fb825641547e6b3af8ebe510595dd18207dfa (patch)
tree6b9aa2a779f374f300721b1f7f9efa085c1e6ee3 /pym
parenta155a23e88c446294ea9787e10ab7c04095501a1 (diff)
downloadportage-e90fb825641547e6b3af8ebe510595dd18207dfa.tar.gz
portage-e90fb825641547e6b3af8ebe510595dd18207dfa.tar.bz2
portage-e90fb825641547e6b3af8ebe510595dd18207dfa.zip
Make portdbapi.flush_cache() consistent with vardbapi.flush_cache().
svn path=/main/trunk/; revision=5403
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d7dc3b561..16d99a955 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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: