summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-11 06:02:40 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-11 06:02:40 +0000
commit7804fe79000512fbffb84403299ebf7d83d9a96d (patch)
treeaab20bf0dff78b1cd41ed98fd69a881c51d7a658
parent546f70bba80a0f4db6a775f2750f57874da493ba (diff)
downloadportage-7804fe79000512fbffb84403299ebf7d83d9a96d.tar.gz
portage-7804fe79000512fbffb84403299ebf7d83d9a96d.tar.bz2
portage-7804fe79000512fbffb84403299ebf7d83d9a96d.zip
Copy INHERITED/_eclasses_ handling from portdbapi._metadata_callback() to
portdbapi.aux_get() since it's still needed there or else aux_get won't properly return INHERITED. svn path=/main/trunk/; revision=11016
-rw-r--r--pym/portage/dbapi/porttree.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 797c886f2..23fb67d32 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -417,6 +417,12 @@ class portdbapi(dbapi):
self._metadata_callback(
mycpv, myebuild, mylocation, mydata, emtime)
+ if mydata.get("INHERITED", False):
+ mydata["_eclasses_"] = \
+ self.eclassdb.get_eclass_data(mydata["INHERITED"].split())
+ else:
+ mydata["_eclasses_"] = {}
+
if not mydata.setdefault("EAPI", "0"):
mydata["EAPI"] = "0"