Copy INHERITED/_eclasses_ handling from portdbapi._metadata_callback() to
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Jul 2008 06:02:40 +0000 (06:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Jul 2008 06:02:40 +0000 (06:02 -0000)
portdbapi.aux_get() since it's still needed there or else aux_get won't
properly return INHERITED.

svn path=/main/trunk/; revision=11016

pym/portage/dbapi/porttree.py

index 797c886f277239b238e2edd3037da31b0a5b974a..23fb67d32afb60e20fbfe6d80f7222532bfe92f2 100644 (file)
@@ -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"