diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-25 04:06:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-25 04:06:00 +0000 |
commit | 437e8e808ceed3a23fa1a83b9d60f9e8edbb749e (patch) | |
tree | a0d5bbfc789fb4e2613be56c53087c93b7da3104 | |
parent | cdf89b0156dfbb6f5004e44b47d2119bdb0bde8c (diff) | |
download | portage-437e8e808ceed3a23fa1a83b9d60f9e8edbb749e.tar.gz portage-437e8e808ceed3a23fa1a83b9d60f9e8edbb749e.tar.bz2 portage-437e8e808ceed3a23fa1a83b9d60f9e8edbb749e.zip |
Bug #223417 - use floating point mtime for finer grained validation in
cachedir(). (trunk r10389)
svn path=/main/branches/2.1.2/; revision=10405
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |