summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-12 03:33:40 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-12 03:33:40 +0000
commit7cd8d39ed759e66b20e03209439446b77bb71d10 (patch)
treed865ebc78ccbc237358e33cdf12b5f2104471434
parent052a7d70b6f8b4d467fca48aba43be74fdd1506f (diff)
downloadportage-7cd8d39ed759e66b20e03209439446b77bb71d10.tar.gz
portage-7cd8d39ed759e66b20e03209439446b77bb71d10.tar.bz2
portage-7cd8d39ed759e66b20e03209439446b77bb71d10.zip
Bug #265768 - If the user happens to be using the metadata_overlay module
then initialize it's eclass cache with an appropriate instance inside the portdbapi constructor. svn path=/main/trunk/; revision=13329
-rw-r--r--pym/portage/dbapi/porttree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index a7e074d45..64212084d 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -264,8 +264,8 @@ class portdbapi(dbapi):
# ~harring
filtered_auxdbkeys = filter(lambda x: not x.startswith("UNUSED_0"), auxdbkeys)
filtered_auxdbkeys.sort()
+ from portage.cache import metadata_overlay, volatile
if secpass < 1:
- from portage.cache import metadata_overlay, volatile
for x in self.porttrees:
db_ro = self.auxdbmodule(self.depcachedir, x,
filtered_auxdbkeys, gid=portage_gid, readonly=True)
@@ -280,6 +280,8 @@ class portdbapi(dbapi):
# location, label, auxdbkeys
self.auxdb[x] = self.auxdbmodule(
self.depcachedir, x, filtered_auxdbkeys, gid=portage_gid)
+ if self.auxdbmodule is metadata_overlay.database:
+ self.auxdb[x].db_ro.ec = self._repo_info[x].eclass_db
if "metadata-transfer" not in self.mysettings.features:
for x in self.porttrees:
if x in self._pregen_auxdb: