From 437e8e808ceed3a23fa1a83b9d60f9e8edbb749e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 25 May 2008 04:06:00 +0000 Subject: Bug #223417 - use floating point mtime for finer grained validation in cachedir(). (trunk r10389) svn path=/main/branches/2.1.2/; revision=10405 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage.py') diff --git a/pym/portage.py b/pym/portage.py index 496539304..85b9bf670 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -204,7 +204,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: -- cgit v1.2.3-1-g7c22