diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-22 19:53:04 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-22 19:53:04 +0000 |
commit | 5928fbb44153884b275c2e1ecd67e7499dcf038f (patch) | |
tree | bfb707066f6d776cab6df963e5b68d844a57d4b7 | |
parent | 79db37d777c2c3d6ae81bcb647bf395350f217fe (diff) | |
download | portage-5928fbb44153884b275c2e1ecd67e7499dcf038f.tar.gz portage-5928fbb44153884b275c2e1ecd67e7499dcf038f.tar.bz2 portage-5928fbb44153884b275c2e1ecd67e7499dcf038f.zip |
Convert stat timestamps to long for compatibility with python-2.5, which returns floats for timestamps.
svn path=/main/trunk/; revision=4499
-rw-r--r-- | pym/cache/flat_hash.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |