summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.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/_emerge/actions.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/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index d14b6c3a1..1d7fdc686 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2566,7 +2566,7 @@ def git_sync_timestamps(settings, portdir):
if ec in updated_ec_mtimes:
continue
ec_path = os.path.join(ec_dir, ec + ".eclass")
- current_mtime = long(os.stat(ec_path).st_mtime)
+ current_mtime = os.stat(ec_path)[stat.ST_MTIME]
if current_mtime != ec_mtime:
os.utime(ec_path, (ec_mtime, ec_mtime))
updated_ec_mtimes[ec] = ec_mtime