From: Zac Medico Date: Wed, 4 Jun 2008 01:42:16 +0000 (-0000) Subject: Use float mtime instead of int for finer granularity in vardbapi.match() X-Git-Tag: v2.1.5.4~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebd8a59f91f447d39e31e5a6b00f07869c58b404;p=portage.git 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 --- 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