From 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 May 2011 19:38:00 -0700 Subject: [PATCH] MergeProcess: populate vardbapi cache for new pkg --- pym/portage/dbapi/_MergeProcess.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.26.2