diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-01-01 23:34:30 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-01-01 23:34:30 -0800 |
commit | bbd0a415c33d46c168f38a59bf1bc031a586c5e2 (patch) | |
tree | 1c93f5a4ac33afd4eafabede25272397f4bf6365 | |
parent | e2f5b48cd9533eea83b02c97cbab9e0df86e78e8 (diff) | |
download | portage-bbd0a415c33d46c168f38a59bf1bc031a586c5e2.tar.gz portage-bbd0a415c33d46c168f38a59bf1bc031a586c5e2.tar.bz2 portage-bbd0a415c33d46c168f38a59bf1bc031a586c5e2.zip |
repoman: discard xmatch caches from previous pkgs
This should help prevent repoman from consuming too much memory when
checking multiple packages or the whole tree.
-rwxr-xr-x | bin/repoman | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman index 5fc2de00b..1933489ef 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1195,6 +1195,8 @@ if options.if_modified == "y": for x in effective_scanlist: #ebuilds and digests added to cvs respectively. logging.info("checking package %s" % x) + # save memory by discarding xmatch caches from previous package(s) + arch_xmatch_caches.clear() eadded=[] catdir,pkgdir=x.split("/") checkdir=repodir+"/"+x |