diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-07 23:47:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-07 23:47:17 +0000 |
commit | e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2 (patch) | |
tree | b7367cf657713771f9517af9a3ab8932c4e21727 | |
parent | 5053cb60a46add9f54ea6678d7ff6da040119df7 (diff) | |
download | portage-e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2.tar.gz portage-e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2.tar.bz2 portage-e15d4759d3a199f16ce01bc974a7ceb9adfd0dc2.zip |
For repoman, only cache the metadata necessary for visibility
checks in order to reduce memory consumption.
svn path=/main/trunk/; revision=9743
-rwxr-xr-x | bin/repoman | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman index 15f6b7d06..ad487fd8b 100755 --- a/bin/repoman +++ b/bin/repoman @@ -470,6 +470,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"] |