Cache BUILD_TIME in $PKGDIR/Packages and inside bindbapi. (trunk r15360)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:21:34 +0000 (20:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:21:34 +0000 (20:21 -0000)
svn path=/main/branches/2.1.7/; revision=15587

pym/portage/dbapi/bintree.py

index ecc8424c009d89781a2dbfa9ee365f879744fbe4..abd375a2d5a5a599849e0e2e66cc835d01c32874 100644 (file)
@@ -49,7 +49,7 @@ class bindbapi(fakedbapi):
                self.cpdict={}
                # Selectively cache metadata in order to optimize dep matching.
                self._aux_cache_keys = set(
-                       ["CHOST", "DEPEND", "EAPI", "IUSE", "KEYWORDS",
+                       ["BUILD_TIME", "CHOST", "DEPEND", "EAPI", "IUSE", "KEYWORDS",
                        "LICENSE", "PDEPEND", "PROPERTIES", "PROVIDE",
                        "RDEPEND", "repository", "RESTRICT", "SLOT", "USE"])
                self._aux_cache_slot_dict = slot_dict_class(self._aux_cache_keys)
@@ -187,7 +187,7 @@ class binarytree(object):
                        self._pkgindex_keys = self.dbapi._aux_cache_keys.copy()
                        self._pkgindex_keys.update(["CPV", "MTIME", "SIZE"])
                        self._pkgindex_aux_keys = \
-                               ["CHOST", "DEPEND", "DESCRIPTION", "EAPI",
+                               ["BUILD_TIME", "CHOST", "DEPEND", "DESCRIPTION", "EAPI",
                                "IUSE", "KEYWORDS", "LICENSE", "PDEPEND", "PROPERTIES",
                                "PROVIDE", "RDEPEND", "repository", "SLOT", "USE"]
                        self._pkgindex_aux_keys = list(self._pkgindex_aux_keys)
@@ -200,6 +200,7 @@ class binarytree(object):
                                "CHOST", "CONFIG_PROTECT", "CONFIG_PROTECT_MASK", "FEATURES",
                                "GENTOO_MIRRORS", "INSTALL_MASK", "SYNC", "USE"])
                        self._pkgindex_default_pkg_data = {
+                               "BUILD_TIME"         : "",
                                "DEPEND"  : "",
                                "EAPI"    : "0",
                                "IUSE"    : "",