From f596eb79f86fb25f37f726f32c01308bde10fcc3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Jun 2008 05:41:32 +0000 Subject: [PATCH] Use float mtime instead of int for finer granularity in vardbapi.match() cache staleness checks. svn path=/main/trunk/; revision=10550 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2