From: Zac Medico Date: Fri, 27 May 2011 02:55:28 +0000 (-0700) Subject: dblink.merge: populate vardbapi cache for new pkg X-Git-Tag: v2.1.9.50~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59835b2473cad2981ffe5e3fde9badf3a0c08af6;p=portage.git 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. --- 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