Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/
Date: Fri, 27 May 2011 02:39:02
Message-Id: 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3.zmedico@gentoo
1 commit: 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 02:38:00 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 02:38:00 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=4b5ab00f
7
8 MergeProcess: populate vardbapi cache for new pkg
9
10 ---
11 pym/portage/dbapi/_MergeProcess.py | 9 +++++++++
12 1 files changed, 9 insertions(+), 0 deletions(-)
13
14 diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py
15 index 43bec72..b52c158 100644
16 --- a/pym/portage/dbapi/_MergeProcess.py
17 +++ b/pym/portage/dbapi/_MergeProcess.py
18 @@ -254,6 +254,15 @@ class MergeProcess(SpawnProcess):
19 """
20 Unregister from the scheduler and close open files.
21 """
22 +
23 + if not self.unmerge:
24 + # Populate the vardbapi cache for the new package
25 + # while its inodes are still hot.
26 + try:
27 + self.vartree.dbapi.aux_get(self.settings.mycpv, ["EAPI"])
28 + except KeyError:
29 + pass
30 +
31 self._unlock_vdb()
32 if self._elog_reg_id is not None:
33 self.scheduler.unregister(self._elog_reg_id)