diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-25 01:28:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-25 01:28:20 +0000 |
commit | 020488b3a479130a046f982271e38c1383662376 (patch) | |
tree | d817fb38916c381da6b8435aef7ab17fe7c44a79 /pym/_emerge/__init__.py | |
parent | dd87c8dd63f0c6b16047aa851695f3a61aa75afa (diff) | |
download | portage-020488b3a479130a046f982271e38c1383662376.tar.gz portage-020488b3a479130a046f982271e38c1383662376.tar.bz2 portage-020488b3a479130a046f982271e38c1383662376.zip |
Make BinpkgFetcher use longs instead of floats when synchronizing timestamps,
since it's better not to rely on float comparison here. (trunk r12302)
svn path=/main/branches/2.1.6/; revision=12325
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 8b6fa3b24..c85b2f97d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3516,12 +3516,12 @@ class BinpkgFetcher(SpawnProcess): remote_mtime = bintree._remotepkgs[self.pkg.cpv].get("MTIME") if remote_mtime is not None: try: - remote_mtime = float(remote_mtime) + remote_mtime = long(remote_mtime) except ValueError: pass else: try: - local_mtime = os.stat(self.pkg_path).st_mtime + local_mtime = long(os.stat(self.pkg_path).st_mtime) except OSError: pass else: |