From 8cbc9ceaf541042727f7931fc617746cbf2bc1d5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 22 Sep 2006 20:24:06 +0000 Subject: 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 --- bin/emerge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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." -- cgit v1.2.3-1-g7c22