Use long() instead of float() when parsing Package.mtime from the metadata.
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:53 +0000 (05:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:53 +0000 (05:05 -0000)
(trunk r12332)

svn path=/main/branches/2.1.6/; revision=12338

pym/_emerge/__init__.py

index 55e895d105029a74f5e52f94c9eae9b223f57b9d..71ea7ca6d4b0d758a16f16807689726f7e120e2d 100644 (file)
@@ -1547,7 +1547,7 @@ class _PackageMetadataWrapper(_PackageMetadataWrapperBase):
        def _set__mtime_(self, k, v):
                if isinstance(v, basestring):
                        try:
-                               v = float(v.strip())
+                               v = long(v.strip())
                        except ValueError:
                                v = 0
                self._pkg.mtime = v