diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-05-26 19:55:28 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-26 19:55:28 -0700 |
commit | 59835b2473cad2981ffe5e3fde9badf3a0c08af6 (patch) | |
tree | 006597b65db9c44e2e86220aa1035970f7f85dc9 | |
parent | c71146ee4ae7c9c9c15a17de6bd8f3abf376d1d6 (diff) | |
download | portage-59835b2473cad2981ffe5e3fde9badf3a0c08af6.tar.gz portage-59835b2473cad2981ffe5e3fde9badf3a0c08af6.tar.bz2 portage-59835b2473cad2981ffe5e3fde9badf3a0c08af6.zip |
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.
-rw-r--r-- | pym/portage/dbapi/vartree.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |