summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-08 04:20:21 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-08 04:20:21 +0000
commit5725199a1a24bef4aca4d1cd09c412ad04e3ec34 (patch)
treef01bd50f717d0e721ac4be80fc9c41517e956322
parent24dd9bc7252b7e17568df031549371ea5257c4ed (diff)
downloadportage-5725199a1a24bef4aca4d1cd09c412ad04e3ec34.tar.gz
portage-5725199a1a24bef4aca4d1cd09c412ad04e3ec34.tar.bz2
portage-5725199a1a24bef4aca4d1cd09c412ad04e3ec34.zip
Make portdbapi.aux_get() return float type for _mtime_.
svn path=/main/trunk/; revision=10603
-rw-r--r--pym/portage/dbapi/porttree.py5
1 files changed, 4 insertions, 1 deletions
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,""))