repoman: discard xmatch caches from previous pkgs
authorZac Medico <zmedico@gentoo.org>
Mon, 2 Jan 2012 07:34:30 +0000 (23:34 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 2 Jan 2012 07:34:30 +0000 (23:34 -0800)
This should help prevent repoman from consuming too much memory when
checking multiple packages or the whole tree.

bin/repoman

index 5fc2de00bc591938907173065450fd48816431a0..1933489ef25bf45820937885cea43febf129c0ab 100755 (executable)
@@ -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