summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-03 05:41:32 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-03 05:41:32 +0000
commitf596eb79f86fb25f37f726f32c01308bde10fcc3 (patch)
tree7cd64d556ba2796a34241a71331a74c83985762d
parente73b7aab1e9c07e95a2d4d3206f74897e0caa363 (diff)
downloadportage-f596eb79f86fb25f37f726f32c01308bde10fcc3.tar.gz
portage-f596eb79f86fb25f37f726f32c01308bde10fcc3.tar.bz2
portage-f596eb79f86fb25f37f726f32c01308bde10fcc3.zip
Use float mtime instead of int for finer granularity in vardbapi.match()
cache staleness checks. svn path=/main/trunk/; revision=10550
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index c2503eb42..48cd0c731 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -534,7 +534,7 @@ class vardbapi(dbapi):
return list(self._iter_match(mydep,
self.cp_list(mydep.cp, use_cache=use_cache)))
try:
- curmtime = os.stat(self.root+VDB_PATH+"/"+mycat)[stat.ST_MTIME]
+ curmtime = os.stat(self.root+VDB_PATH+"/"+mycat).st_mtime
except (IOError, OSError):
curmtime=0