Convert st_mtime to long for movefile() return type.
authorZac Medico <zmedico@gentoo.org>
Sun, 13 Apr 2008 07:43:24 +0000 (07:43 -0000)
committerZac 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

index 6a6d088d76a47ce7fbbafacba1a170212772d565..5c712a47268d36501e4fb32ac4100ac5a545071e 100644 (file)
@@ -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)