From: Zac Medico Date: Fri, 27 May 2011 02:38:00 +0000 (-0700) Subject: MergeProcess: populate vardbapi cache for new pkg X-Git-Tag: v2.2.0_alpha37~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3;p=portage.git MergeProcess: populate vardbapi cache for new pkg --- diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py index 43bec7294..b52c15868 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)