From: Zac Medico Date: Tue, 3 Jun 2008 05:41:32 +0000 (-0000) Subject: Use float mtime instead of int for finer granularity in vardbapi.match() X-Git-Tag: v2.2_pre8~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f596eb79f86fb25f37f726f32c01308bde10fcc3;p=portage.git Use float mtime instead of int for finer granularity in vardbapi.match() cache staleness checks. svn path=/main/trunk/; revision=10550 --- 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