summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-23 01:11:08 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-23 01:11:08 +0000
commit2e60f465f52a10967d685d332a7c0fb8f8096c9c (patch)
treec168b62ac7a18583208df07ae2703b55cdd6b103
parentf31f8b9a6a618b0416f6d05c7e58db21696fa4ab (diff)
downloadportage-2e60f465f52a10967d685d332a7c0fb8f8096c9c.tar.gz
portage-2e60f465f52a10967d685d332a7c0fb8f8096c9c.tar.bz2
portage-2e60f465f52a10967d685d332a7c0fb8f8096c9c.zip
Fix config.setinst() to return early when the given
package already provides the virtual. svn path=/main/trunk/; revision=8240
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 3fe7fe405..4bf3ce85a 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2065,6 +2065,9 @@ class config(object):
cp = dep_getkey(mycpv)
for virt in virts:
virt = dep_getkey(virt)
+ providers = self.virtuals.get(virt)
+ if providers and cp in providers:
+ continue
providers = self._depgraphVirtuals.get(virt)
if providers is None:
providers = []