From: Zac Medico Date: Thu, 25 Dec 2008 01:28:20 +0000 (-0000) Subject: Make BinpkgFetcher use longs instead of floats when synchronizing timestamps, X-Git-Tag: v2.1.6.3~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=020488b3a479130a046f982271e38c1383662376;p=portage.git 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 --- 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: