From 29d6b4b53f85b1857d8a8cb07cd3ed1c39649004 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Dec 2008 05:05:53 +0000 Subject: [PATCH] Use long() instead of float() when parsing Package.mtime from the metadata. (trunk r12332) svn path=/main/branches/2.1.6/; revision=12338 --- pym/_emerge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 55e895d10..71ea7ca6d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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 -- 2.26.2