summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-22 20:24:06 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-22 20:24:06 +0000
commit8cbc9ceaf541042727f7931fc617746cbf2bc1d5 (patch)
treeba83c8e38198b39e70244ff0504871080f9f6791 /bin
parent5928fbb44153884b275c2e1ecd67e7499dcf038f (diff)
downloadportage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.gz
portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.bz2
portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.zip
For compatibility with float timestamps in python-2.5, convert st_mtime attributes to long wherever portage expects 1s resolution.
svn path=/main/trunk/; revision=4500
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index afd107080..bf980104b 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2479,7 +2479,7 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
continue
inforoot=normpath(root+z)
if os.path.isdir(inforoot):
- infomtime = os.stat(inforoot).st_mtime
+ infomtime = long(os.stat(inforoot).st_mtime)
if inforoot not in prev_mtimes or \
prev_mtimes[inforoot] != infomtime:
regen_infodirs.append(inforoot)
@@ -2526,7 +2526,7 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
icount=icount+1
#update mtime so we can potentially avoid regenerating.
- prev_mtimes[inforoot] = os.stat(inforoot).st_mtime
+ prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime)
if badcount:
print " "+yellow("*")+" Processed",icount,"info files;",badcount,"errors."