summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-21 03:05:41 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-21 03:05:41 +0000
commit0ddf14312e045676c93374b15c8e89c38ebd38fa (patch)
tree108f8a34488124262e052af64a0af0622bb92b7c
parentd67fece1b741c0aae609436cd83ac0d2c448092c (diff)
downloadportage-0ddf14312e045676c93374b15c8e89c38ebd38fa.tar.gz
portage-0ddf14312e045676c93374b15c8e89c38ebd38fa.tar.bz2
portage-0ddf14312e045676c93374b15c8e89c38ebd38fa.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=15126
-rw-r--r--pym/portage/cache/flat_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/flat_list.py b/pym/portage/cache/flat_list.py
index bf465efdb..51231a52a 100644
--- a/pym/portage/cache/flat_list.py
+++ b/pym/portage/cache/flat_list.py
@@ -48,7 +48,7 @@ class database(fs_template.FsBased):
raise cache_errors.CacheCorruption(cpv, e)
try:
- d["_mtime_"] = long(os.fstat(myf.fileno()).st_mtime)
+ d["_mtime_"] = os.fstat(myf.fileno())[stat.ST_MTIME]
except OSError as e:
myf.close()
raise cache_errors.CacheCorruption(cpv, e)