From: Zac Medico Date: Sun, 8 Jun 2008 04:20:21 +0000 (-0000) Subject: Make portdbapi.aux_get() return float type for _mtime_. X-Git-Tag: v2.2_pre8~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5725199a1a24bef4aca4d1cd09c412ad04e3ec34;p=portage.git Make portdbapi.aux_get() return float type for _mtime_. svn path=/main/trunk/; revision=10603 --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 83069bd2c..d6d5657c3 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -283,7 +283,8 @@ class portdbapi(dbapi): try: - emtime = os.stat(myebuild)[stat.ST_MTIME] + st = os.stat(myebuild) + emtime = st[stat.ST_MTIME] except OSError: writemsg("!!! aux_get(): ebuild for '%(cpv)s' does not exist at:\n" % {"cpv":mycpv}, noiselevel=-1) @@ -379,6 +380,8 @@ class portdbapi(dbapi): 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,""))