From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QPmx4-0001oI-DS for garchives@archives.gentoo.org; Fri, 27 May 2011 02:39:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A460D1C01A; Fri, 27 May 2011 02:38:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 781591C01A for ; Fri, 27 May 2011 02:38:52 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EB1041B4033 for ; Fri, 27 May 2011 02:38:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 579BE80505 for ; Fri, 27 May 2011 02:38:48 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/_MergeProcess.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3 Date: Fri, 27 May 2011 02:38:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8a7d2708b1a3e40430036a71dc716e6d commit: 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3 Author: Zac Medico gentoo org> AuthorDate: Fri May 27 02:38:00 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri May 27 02:38:00 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D4b5ab00f MergeProcess: populate vardbapi cache for new pkg --- pym/portage/dbapi/_MergeProcess.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_Merg= eProcess.py index 43bec72..b52c158 100644 --- a/pym/portage/dbapi/_MergeProcess.py +++ b/pym/portage/dbapi/_MergeProcess.py @@ -254,6 +254,15 @@ class MergeProcess(SpawnProcess): """ Unregister from the scheduler and close open files. """ + + if not self.unmerge: + # Populate the vardbapi cache for the new package + # while its inodes are still hot. + try: + self.vartree.dbapi.aux_get(self.settings.mycpv, ["EAPI"]) + except KeyError: + pass + self._unlock_vdb() if self._elog_reg_id is not None: self.scheduler.unregister(self._elog_reg_id)