Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Mon, 02 Jan 2012 07:37:15
Message-Id: bbd0a415c33d46c168f38a59bf1bc031a586c5e2.zmedico@gentoo
1 commit: bbd0a415c33d46c168f38a59bf1bc031a586c5e2
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 07:34:30 2012 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 07:34:30 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=bbd0a415
7
8 repoman: discard xmatch caches from previous pkgs
9
10 This should help prevent repoman from consuming too much memory when
11 checking multiple packages or the whole tree.
12
13 ---
14 bin/repoman | 2 ++
15 1 files changed, 2 insertions(+), 0 deletions(-)
16
17 diff --git a/bin/repoman b/bin/repoman
18 index 5fc2de0..1933489 100755
19 --- a/bin/repoman
20 +++ b/bin/repoman
21 @@ -1195,6 +1195,8 @@ if options.if_modified == "y":
22 for x in effective_scanlist:
23 #ebuilds and digests added to cvs respectively.
24 logging.info("checking package %s" % x)
25 + # save memory by discarding xmatch caches from previous package(s)
26 + arch_xmatch_caches.clear()
27 eadded=[]
28 catdir,pkgdir=x.split("/")
29 checkdir=repodir+"/"+x