From ebd8a59f91f447d39e31e5a6b00f07869c58b404 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 4 Jun 2008 01:42:16 +0000 Subject: [PATCH] Use float mtime instead of int for finer granularity in vardbapi.match() cache staleness checks. (trunk r10550) svn path=/main/branches/2.1.2/; revision=10570 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index c61ed00cd..8ccc64316 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7001,7 +7001,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