projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8776a5
)
Convert st_mtime to long for movefile() return type.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 13 Apr 2008 07:43:24 +0000
(07:43 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 13 Apr 2008 07:43:24 +0000
(07:43 -0000)
svn path=/main/trunk/; revision=9865
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 6a6d088d76a47ce7fbbafacba1a170212772d565..5c712a47268d36501e4fb32ac4100ac5a545071e 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-5221,7
+5221,7
@@
def movefile(src,dest,newmtime=None,sstat=None,mysettings=None):
# The utime can fail here with EPERM even though the move succeeded.
# Instead of failing, use stat to return the mtime if possible.
try:
- newmtime =
os.stat(dest).st_mtime
+ newmtime =
long(os.stat(dest).st_mtime)
except OSError, e:
writemsg("!!! Failed to stat in movefile()\n", noiselevel=-1)
writemsg("!!! %s\n" % dest, noiselevel=-1)