projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24dd9bc
)
Make portdbapi.aux_get() return float type for _mtime_.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 8 Jun 2008 04:20:21 +0000
(
04:20
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 8 Jun 2008 04:20:21 +0000
(
04:20
-0000)
svn path=/main/trunk/; revision=10603
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index 83069bd2c18e92d4b4c212dd7440670cd86f0db1..d6d5657c346dc2d7ae966521ca47f34dab2264f2 100644
(file)
--- 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,""))