From 5725199a1a24bef4aca4d1cd09c412ad04e3ec34 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 Jun 2008 04:20:21 +0000 Subject: [PATCH] Make portdbapi.aux_get() return float type for _mtime_. svn path=/main/trunk/; revision=10603 --- pym/portage/dbapi/porttree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,"")) -- 2.26.2