Bug #223417 - use floating point mtime for finer grained validation in
authorZac Medico <zmedico@gentoo.org>
Sat, 24 May 2008 19:22:00 +0000 (19:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 May 2008 19:22:00 +0000 (19:22 -0000)
cachedir().

svn path=/main/trunk/; revision=10389

pym/portage/__init__.py

index 84c614757a8a191e3de4f31dbfd6fa18fce544b8..a42f99894333f3c2a7823ccdb7368530d7565cea 100644 (file)
@@ -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: