From: Zac Medico Date: Mon, 9 Jun 2008 15:11:42 +0000 (-0000) Subject: Make portdbapi.aux_get() return float type for _mtime_. (trunk r10603) X-Git-Tag: v2.1.5.5~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d6f824fb2afc79477e0e05d134a76b6a265483a0;p=portage.git Make portdbapi.aux_get() return float type for _mtime_. (trunk r10603) svn path=/main/branches/2.1.2/; revision=10618 --- diff --git a/pym/portage.py b/pym/portage.py index 97eddec57..1454c520d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7688,7 +7688,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) @@ -7784,6 +7785,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,""))