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

svn path=/main/branches/2.1.2/; revision=8241

pym/portage.py

index 4202284337c2866f17bdce35e2637bb6f899e2c1..4cf185bbdd231cddf5bf5c0851c8e087f02bd801 100644 (file)
@@ -1880,6 +1880,9 @@ class config:
                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 = []