diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-25 04:52:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-25 04:52:59 +0000 |
commit | c9f48656d9215d03417be1af9c52ccffa1bc3210 (patch) | |
tree | 66ff609635fc6562430aa5ce01418241ddf11825 | |
parent | d86de183d73592de8e22968d4b793cd3dcd0848a (diff) | |
download | portage-c9f48656d9215d03417be1af9c52ccffa1bc3210.tar.gz portage-c9f48656d9215d03417be1af9c52ccffa1bc3210.tar.bz2 portage-c9f48656d9215d03417be1af9c52ccffa1bc3210.zip |
Use long() instead of float() when parsing Package.mtime from the metadata.
svn path=/main/trunk/; revision=12332
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index fa966f3f5..7306d4215 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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 |