summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-13 07:43:24 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-13 07:43:24 +0000
commitfa0cecfa3a21fd4f6e9613daf2f48500d62ab518 (patch)
treed20c86f2e2540bd8464249df26ce5cff89b332b3 /pym
parenta8776a5df44d20a26db156f6803172917df5f1ad (diff)
downloadportage-fa0cecfa3a21fd4f6e9613daf2f48500d62ab518.tar.gz
portage-fa0cecfa3a21fd4f6e9613daf2f48500d62ab518.tar.bz2
portage-fa0cecfa3a21fd4f6e9613daf2f48500d62ab518.zip
Convert st_mtime to long for movefile() return type.
svn path=/main/trunk/; revision=9865
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6a6d088d7..5c712a472 100644
--- 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)