From: Zac Medico Date: Sun, 18 Nov 2007 04:23:36 +0000 (-0000) Subject: Synchronize vardbapi._aux_cache_keys with trunk. It's important X-Git-Tag: v2.1.4~280 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85ecff2a9d2c37bbddf7b630699642b34b3078ee;p=portage.git Synchronize vardbapi._aux_cache_keys with trunk. It's important at least to include RESTRICT since the depgraph uses that one and therefore it should be cached to improve performance. The others aren't strictly necessary at this time, but it's good to be in sync with trunk. svn path=/main/branches/2.1.2/; revision=8522 --- diff --git a/pym/portage.py b/pym/portage.py index 046277db4..5fc82faff 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5664,8 +5664,10 @@ class vardbapi(dbapi): if vartree is None: vartree = globals()["db"][root]["vartree"] self.vartree = vartree - self._aux_cache_keys = set(["SLOT", "COUNTER", "PROVIDE", "USE", - "IUSE", "DEPEND", "RDEPEND", "PDEPEND", "repository"]) + self._aux_cache_keys = set( + ["CHOST", "COUNTER", "DEPEND", "EAPI", "IUSE", "KEYWORDS", + "LICENSE", "PDEPEND", "PROVIDE", "RDEPEND", "NEEDED", + "repository", "RESTRICT" , "SLOT", "USE"]) self._aux_cache = None self._aux_cache_version = "1" self._aux_cache_filename = os.path.join(self.root, @@ -6019,7 +6021,8 @@ class vardbapi(dbapi): myd = myf.read() finally: myf.close() - myd = " ".join(myd.split()) + if x != "NEEDED": + myd = " ".join(myd.split()) except IOError: myd = "" if x == "EAPI" and not myd: