From 9b8f893ceeb765b77011b41113d8e6bb2c9192e6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 27 Jul 2008 12:24:24 +0000 Subject: Fix breakage from r11213 in INHERITED values returned from portdbapi.aux_get(). svn path=/main/trunk/; revision=11217 --- pym/portage/dbapi/porttree.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 7f4008432..2948ba6a4 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -432,15 +432,11 @@ class portdbapi(dbapi): mydata["repository"] = self._repository_map.get( os.path.sep.join(myebuild.split(os.path.sep)[:-3]), "") + mydata["INHERITED"] = ' '.join(mydata.get("_eclasses_", [])) + mydata["_mtime_"] = st.st_mtime + #finally, we look at our internal cache entry and return the requested data. - returnme = [] - for x in mylist: - if x == "INHERITED": - returnme.append(' '.join(mydata.get("_eclasses_", []))) - elif x == "_mtime_": - returnme.append(st.st_mtime) - else: - returnme.append(mydata.get(x,"")) + returnme = [mydata.get(x, "") for x in mylist] if cache_me: if self._aux_cache_slot_dict is None: -- cgit v1.2.3-1-g7c22