summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-01-01 23:34:30 -0800
committerZac Medico <zmedico@gentoo.org>2012-01-01 23:34:30 -0800
commitbbd0a415c33d46c168f38a59bf1bc031a586c5e2 (patch)
tree1c93f5a4ac33afd4eafabede25272397f4bf6365 /bin
parente2f5b48cd9533eea83b02c97cbab9e0df86e78e8 (diff)
downloadportage-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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman2
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