summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-24 04:01:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-24 04:01:10 +0000
commitf281c83e07a05c32baf782bb9d792435f73003ff (patch)
treeed80a15217e77489e68d28f013338fc2d82fc927 /pym/_emerge/actions.py
parent9bc6adcbcf90186447aa2eba8415dbb501dc040f (diff)
downloadportage-f281c83e07a05c32baf782bb9d792435f73003ff.tar.gz
portage-f281c83e07a05c32baf782bb9d792435f73003ff.tar.bz2
portage-f281c83e07a05c32baf782bb9d792435f73003ff.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. (trunk r15125) svn path=/main/branches/2.1.7/; revision=15137
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 eb777684c..14854c06f 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2390,7 +2390,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