summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/flat_hash.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-21 03:03:51 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-21 03:03:51 +0000
commitd67fece1b741c0aae609436cd83ac0d2c448092c (patch)
tree60b4f0767576d86780dbcd93aa3095c82f6b7e62 /pym/portage/cache/flat_hash.py
parentc4ac4de2264b51d182412dfb4dada548b2e05e5e (diff)
downloadportage-d67fece1b741c0aae609436cd83ac0d2c448092c.tar.gz
portage-d67fece1b741c0aae609436cd83ac0d2c448092c.tar.bz2
portage-d67fece1b741c0aae609436cd83ac0d2c448092c.zip
When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
float st_mtime in order to avoid rounding *up* in some rare cases. svn path=/main/trunk/; revision=15125
Diffstat (limited to 'pym/portage/cache/flat_hash.py')
-rw-r--r--pym/portage/cache/flat_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py
index 49d7ce6a0..934115805 100644
--- a/pym/portage/cache/flat_hash.py
+++ b/pym/portage/cache/flat_hash.py
@@ -48,7 +48,7 @@ class database(fs_template.FsBased):
if '_mtime_' not in d:
# Backward compatibility with old cache
# that uses mtime mangling.
- d['_mtime_'] = long(_os.fstat(myf.fileno()).st_mtime)
+ d['_mtime_'] = _os.fstat(myf.fileno())[stat.ST_MTIME]
return d
finally:
myf.close()