From 87ac46d189a042961e8c9c53301657f81a593aac Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 24 May 2008 19:22:00 +0000 Subject: [PATCH] Bug #223417 - use floating point mtime for finer grained validation in cachedir(). svn path=/main/trunk/; revision=10389 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2