summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-15 20:53:57 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-15 20:53:57 +0000
commita37ad5c9886297ae04ecb82cc2401cbaa62eddf9 (patch)
tree7654cec83a505eb5cca94c2c8a3c44569499e03b
parent2042c0b1e4d042b9a01ef1ece179248ba2ab31cf (diff)
downloadportage-a37ad5c9886297ae04ecb82cc2401cbaa62eddf9.tar.gz
portage-a37ad5c9886297ae04ecb82cc2401cbaa62eddf9.tar.bz2
portage-a37ad5c9886297ae04ecb82cc2401cbaa62eddf9.zip
Cache BUILD_TIME in $PKGDIR/Packages and inside bindbapi.
svn path=/main/trunk/; revision=15360
-rw-r--r--pym/portage/dbapi/bintree.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index ecc8424c0..abd375a2d 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -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" : "",