From: Zac Medico Date: Sat, 24 May 2008 19:22:00 +0000 (-0000) Subject: Bug #223417 - use floating point mtime for finer grained validation in X-Git-Tag: v2.2_pre8~125 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87ac46d189a042961e8c9c53301657f81a593aac;p=portage.git Bug #223417 - use floating point mtime for finer grained validation in cachedir(). svn path=/main/trunk/; revision=10389 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 84c614757..a42f99894 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -202,7 +202,7 @@ def cacheddir(my_original_path, ignorecvs, ignorelist, EmptyOnError, followSymli try: pathstat = os.stat(mypath) if stat.S_ISDIR(pathstat[stat.ST_MODE]): - mtime = pathstat[stat.ST_MTIME] + mtime = pathstat.st_mtime else: raise portage.exception.DirectoryNotFound(mypath) except EnvironmentError, e: