From d6f824fb2afc79477e0e05d134a76b6a265483a0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Jun 2008 15:11:42 +0000 Subject: [PATCH] Make portdbapi.aux_get() return float type for _mtime_. (trunk r10603) svn path=/main/branches/2.1.2/; revision=10618 --- pym/portage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,"")) -- 2.26.2