From bbd0a415c33d46c168f38a59bf1bc031a586c5e2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 1 Jan 2012 23:34:30 -0800 Subject: [PATCH] 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. --- bin/repoman | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2