Use long() instead of float() when parsing Package.mtime from the metadata.
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 04:52:59 +0000 (04:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 04:52:59 +0000 (04:52 -0000)
svn path=/main/trunk/; revision=12332

pym/_emerge/__init__.py

index fa966f3f54315c53627af03f0adfaedef9f90bce..7306d4215b14ec4e4b00a18adff840b96efbf781 100644 (file)
@@ -1566,7 +1566,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