Fix config.setinst() to return early when the given
authorZac Medico <zmedico@gentoo.org>
Tue, 23 Oct 2007 01:11:08 +0000 (01:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 23 Oct 2007 01:11:08 +0000 (01:11 -0000)
package already provides the virtual.

svn path=/main/trunk/; revision=8240

pym/portage/__init__.py

index 3fe7fe405fa5039c9c9c6fa89dc9e340aad6a64c..4bf3ce85a9c6acf8f2586f838218fbc781a93dce 100644 (file)
@@ -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 = []