Use float mtime instead of int for finer granularity in vardbapi.match()
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 05:41:32 +0000 (05:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 05:41:32 +0000 (05:41 -0000)
cache staleness checks.

svn path=/main/trunk/; revision=10550

pym/portage/dbapi/vartree.py

index c2503eb42a192336f087098ff926ab3d31176ee4..48cd0c731debe90dd7edc1dd1189ce2718b04f4c 100644 (file)
@@ -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