diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-24 22:49:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-24 22:49:37 +0000 |
commit | 5e759789584128f169507015337dc1c931b34d6d (patch) | |
tree | 2a6ef010ab8466e3bac7c1ce82063589356e7035 | |
parent | 8435b24bba973b29c735bed5fa1414e6eca878ce (diff) | |
download | portage-5e759789584128f169507015337dc1c931b34d6d.tar.gz portage-5e759789584128f169507015337dc1c931b34d6d.tar.bz2 portage-5e759789584128f169507015337dc1c931b34d6d.zip |
Make BinpkgFetcher use longs instead of floats when synchronizing timestamps,
since it's better not to rely on float comparison here.
svn path=/main/trunk/; revision=12302
-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 c5254a2ab..cb8078f5d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3535,12 +3535,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: |