summaryrefslogtreecommitdiffstats
path: root/pym/portage
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2008-05-04 13:00:53 +0000
committerMarius Mauch <genone@gentoo.org>2008-05-04 13:00:53 +0000
commit89f1d493c1eac03182a7f4f3e25fa11660cdc271 (patch)
tree97aa20f9c2ff1980315cfe0147da674a60d98b8e /pym/portage
parentce613c401889dc536b115f67fea012d210a3d547 (diff)
downloadportage-89f1d493c1eac03182a7f4f3e25fa11660cdc271.tar.gz
portage-89f1d493c1eac03182a7f4f3e25fa11660cdc271.tar.bz2
portage-89f1d493c1eac03182a7f4f3e25fa11660cdc271.zip
remove NEEDED from list of metadata variables (and associated special handling) as it's no longer used
svn path=/main/trunk/; revision=10180
Diffstat (limited to 'pym/portage')
-rw-r--r--pym/portage/dbapi/vartree.py11
1 files changed, 2 insertions, 9 deletions
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: