summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-08 05:42:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-08 05:42:01 +0000
commit64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9 (patch)
tree09f7277133a89ec8e47aff62c760a13f83a654f5
parentf52995bf6e8f10f033001058beab422bd1e27b28 (diff)
downloadportage-64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9.tar.gz
portage-64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9.tar.bz2
portage-64e9940fae692b03f03b7de8a1a0ec3dc5b4f8e9.zip
For repoman, only cache the metadata necessary for visibility
checks in order to reduce memory consumption. (trunk r9743) svn path=/main/branches/2.1.2/; revision=9753
-rwxr-xr-xbin/repoman5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 70c1fad8d..5720bf112 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -694,6 +694,11 @@ trees = portage.create_trees()
trees["/"]["porttree"].settings = repoman_settings
portdb = trees["/"]["porttree"].dbapi
portdb.mysettings = repoman_settings
+# We really only need to cache the metadata that's necessary for visibility
+# filtering. Anything else can be discarded to reduce memory consumption.
+for k in ("DEPEND", "IUSE", "LICENCE", "PDEPEND",
+ "PROVIDE", "RDEPEND", "RESTRICT", "repository"):
+ portdb._aux_cache_keys.discard(k)
# dep_zapdeps looks at the vardbapi, but it shouldn't for repoman.
del trees["/"]["vartree"]