summaryrefslogtreecommitdiffstats
path: root/pym/portage/getbinpkg.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-11 02:02:32 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-11 02:02:32 +0000
commit25fe98891ea96c151141121ff3d70c0552a47847 (patch)
tree4d13b3ee1bc133a6d79c23ff3fae8161cf449827 /pym/portage/getbinpkg.py
parent985d450f5d4af1e407ddfbc9ff098842279edd75 (diff)
downloadportage-25fe98891ea96c151141121ff3d70c0552a47847.tar.gz
portage-25fe98891ea96c151141121ff3d70c0552a47847.tar.bz2
portage-25fe98891ea96c151141121ff3d70c0552a47847.zip
Make portdbapi and bindbapi cache PROVIDE in order
to optimize matching of old-style virtuals. svn path=/main/trunk/; revision=8041
Diffstat (limited to 'pym/portage/getbinpkg.py')
-rw-r--r--pym/portage/getbinpkg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py
index 61042fde7..fe2892d2d 100644
--- a/pym/portage/getbinpkg.py
+++ b/pym/portage/getbinpkg.py
@@ -687,6 +687,7 @@ class PackageIndex(object):
continue
d.setdefault("EAPI", "0")
d.setdefault("IUSE", "")
+ d.setdefault("PROVIDE", "")
d.setdefault("SLOT", "0")
d.setdefault("USE", "")
if header_chost:
@@ -711,6 +712,8 @@ class PackageIndex(object):
del metadata["EAPI"]
if metadata.get("IUSE") == "":
del metadata["IUSE"]
+ if metadata.get("PROVIDE") == "":
+ del metadata["PROVIDE"]
if metadata.get("SLOT") == "0":
del metadata["SLOT"]
if metadata.get("USE") == "":