Fix breakage from r11213 in INHERITED values returned from portdbapi.aux_get().
authorZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 12:24:24 +0000 (12:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 12:24:24 +0000 (12:24 -0000)
svn path=/main/trunk/; revision=11217

pym/portage/dbapi/porttree.py

index 7f40084324859b1790453c6cd6d73097d8373b68..2948ba6a446a3a8668dcb194fbd7f93517575dae 100644 (file)
@@ -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: