From 7804fe79000512fbffb84403299ebf7d83d9a96d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jul 2008 06:02:40 +0000 Subject: [PATCH] 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 --- pym/portage/dbapi/porttree.py | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.26.2