From: Zac Medico Date: Mon, 2 Jan 2012 07:34:30 +0000 (-0800) Subject: repoman: discard xmatch caches from previous pkgs X-Git-Tag: v2.2.0_alpha85~55 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bbd0a415c33d46c168f38a59bf1bc031a586c5e2;p=portage.git 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. --- 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