From 89f1d493c1eac03182a7f4f3e25fa11660cdc271 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Sun, 4 May 2008 13:00:53 +0000 Subject: remove NEEDED from list of metadata variables (and associated special handling) as it's no longer used svn path=/main/trunk/; revision=10180 --- pym/portage/dbapi/vartree.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index ecc70448c..554f997bf 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -251,7 +251,7 @@ class vardbapi(dbapi): self._aux_cache_keys = set( ["CHOST", "COUNTER", "DEPEND", "DESCRIPTION", "EAPI", "HOMEPAGE", "IUSE", "KEYWORDS", - "LICENSE", "PDEPEND", "PROVIDE", "RDEPEND", "NEEDED", + "LICENSE", "PDEPEND", "PROVIDE", "RDEPEND", "repository", "RESTRICT" , "SLOT", "USE"]) self._aux_cache = None self._aux_cache_version = "1" @@ -583,12 +583,6 @@ class vardbapi(dbapi): cache_valid = cache_mtime == mydir_mtime if cache_valid: cache_incomplete = self._aux_cache_keys.difference(metadata) - needed = metadata.get("NEEDED") - if needed is None or needed and "\n" not in needed: - # Cached value has whitespace filtered, so it has to be pulled - # again. This is temporary migration code which can be removed - # later, since it only affects users who are running trunk. - cache_incomplete.add("NEEDED") if cache_incomplete: # Allow self._aux_cache_keys to change without a cache version # bump and efficiently recycle partial cache whenever possible. @@ -630,8 +624,7 @@ class vardbapi(dbapi): myd = myf.read() finally: myf.close() - if x != "NEEDED": - myd = " ".join(myd.split()) + myd = " ".join(myd.split()) except IOError: myd = "" if x == "EAPI" and not myd: -- cgit v1.2.3-1-g7c22