From: Zac Medico Date: Fri, 11 Jul 2008 06:02:40 +0000 (-0000) Subject: Copy INHERITED/_eclasses_ handling from portdbapi._metadata_callback() to X-Git-Tag: v2.2_rc2~128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7804fe79000512fbffb84403299ebf7d83d9a96d;p=portage.git 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 --- 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"