From: Zac Medico Date: Fri, 22 Sep 2006 19:53:04 +0000 (-0000) Subject: Convert stat timestamps to long for compatibility with python-2.5, which returns... X-Git-Tag: v2.1.1-r1~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5928fbb44153884b275c2e1ecd67e7499dcf038f;p=portage.git Convert stat timestamps to long for compatibility with python-2.5, which returns floats for timestamps. svn path=/main/trunk/; revision=4499 --- diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py index c46f00593..df8043c2d 100644 --- a/pym/cache/flat_hash.py +++ b/pym/cache/flat_hash.py @@ -28,7 +28,8 @@ class database(fs_template.FsBased): def callit(*args2): return args[0](*args[1:]+args2) return callit - return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv), initial_items=[("_mtime_", os.stat(fp).st_mtime)])) + return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv), + initial_items=[("_mtime_", long(os.stat(fp).st_mtime))])) except OSError: raise KeyError(cpv) return self._getitem(cpv)