From 59835b2473cad2981ffe5e3fde9badf3a0c08af6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 May 2011 19:55:28 -0700 Subject: dblink.merge: populate vardbapi cache for new pkg This is similar to commit 4b5ab00fd0fd08af8c9075acdbb3921cf39d41a3 from the master branch, but in this branch it doesn't fit in MergeProcess. --- pym/portage/dbapi/vartree.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index f93652b37..b8daa3e34 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -4092,6 +4092,14 @@ class dblink(object): self, mydbapi, myebuild, "clean") finally: + + # Populate the vardbapi cache for the new package + # while its inodes are still hot. + try: + self.vartree.dbapi.aux_get(self.mycpv, ["EAPI"]) + except KeyError: + pass + self.settings.pop('REPLACING_VERSIONS', None) if self.vartree.dbapi._linkmap is None: # preserve-libs is entirely disabled -- cgit v1.2.3-1-g7c22